Jump to content

Session problems


vegnadragon

Recommended Posts

I often used cookies in the past because they where easier to use but i think i need to use session for my new page. What i do know is that session is store in the server. So my problem is, in my site i want to store a single number value, a unique name or id to identify and a expire time so how do i create those and how do i get those values in a session. i hope the message is clear. Thanks for your time.

Link to comment
https://forums.phpfreaks.com/topic/87449-session-problems/
Share on other sites

I know how to do that, my session contain info for userA, i don't want userB to get userA. I want to create a unique session only for userA.

 

Session is unique per user!

this code:

<?php
session_start();
$_SESSION['x'] = /* any data you want to store */;
?>

will create a session file for each user-request (one per user).

the user A will not see the value x of user B!

Link to comment
https://forums.phpfreaks.com/topic/87449-session-problems/#findComment-447589
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.