Jump to content

destroying session array


Ninjakreborn

Recommended Posts

I have a login session.
I am also creating a temporary session array
$_SESSION['temp']['variable'] = "value";
there are a lot of them, but I need to destroy them at a specific point, the entire array need's the be "cleansed" at a specific point, without removing any other sessions but the one's in that array.
I would think session_destroy($_SESSION['temp']);
would remove the entire array but it only takes 0 parameters.  So that can't happen.
For now how do I just destroy that one session array.
Link to comment
https://forums.phpfreaks.com/topic/25823-destroying-session-array/
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.