Jump to content

[SOLVED] session question


M.O.S. Studios

Recommended Posts

i figured out my own question

 

this is how i did it

 

$sid=session_id();

session_regenerate_id();

unset($_SESSION['cart']);

unset($_SESSION['comments']);

 

i set $sid, that gave me the old session id so i can pull it up later

then i used  session_regenerate_id(); to creat a new session

the un set the values i no longer wanted.

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.