Jaelan
12-03-2004, 03:53 PM
Ok, I have a question about sessions in general and how to destroy them.
I understand the general principle of setting up sessions, using them, unsetting them. And I know to call session_destroy() to end a session. However, I've read it's also good practice (for memory reasons, I assume) to unset all the SESSION variables. But say I have many SESSION variables that I don't want to keep track of when I finally destroy the session. Is there an array of SESSION variables that I could just loop through and unset them somehow?
Jaelan
I understand the general principle of setting up sessions, using them, unsetting them. And I know to call session_destroy() to end a session. However, I've read it's also good practice (for memory reasons, I assume) to unset all the SESSION variables. But say I have many SESSION variables that I don't want to keep track of when I finally destroy the session. Is there an array of SESSION variables that I could just loop through and unset them somehow?
Jaelan