Page 1 of 1

Suspending a Session

Posted: Fri Jun 17, 2005 12:19 pm
by Squeaku
I'm working on a project for school. We're making MP3 download sites where you sign up for an account and use your credit card to get credits for downloading music.

I need help with how to log-out and suspend the session without terminating the mysql data in the users table. Any help would be appreciated.

Posted: Fri Jun 17, 2005 1:03 pm
by shiznatix
suspend the data like you mean

Code: Select all

$_SESSION = array();
unset($_SESSION);
or if you want to just kinda backup the session without destroying it you could make a copy of the session with a fk_the_original_session_name_here or somthing so once you want to start using it again you could just go back and do the same thing

Posted: Tue Jun 21, 2005 1:52 am
by asmie
Hie,

You can unset sessions using the session_unset() function.

The session_unset() function frees all session variables currently registered.


Hope this helps !

Asmie

Posted: Tue Jun 21, 2005 2:02 am
by Syranide
First off I don't see how it would affect the database anyhow?
Is there something temporary in the database?