Re: still on sessions

From: Date: Fri, 26 Jul 2002 20:37:30 +0000
Subject: Re: still on sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109878@lists.php.net to get a copy of this message
After you call session_destroy() session_id() will return nothing. so you could do this: // example only session_start(); print "<br>" . session_id(); // now you see it.... $_SESSION = array(); session_destroy(); print "<br>" . session_id(); // ...now you don't! if (! session_id() ) // test it.... now you can be sure. die("no session"); Jim Grill Support Web-1 Hosting http://www.web-1hosting.net ----- Original Message ----- From: "Tyler Durdin" <linuxgeek23@hotmail.com> To: <php-general@lists.php.net> Sent: Friday, July 26, 2002 2:46 PM Subject: Re: [PHP] still on sessions > Alright this is my last question. I have closed the session, but can i make > sure it is closed? i want to use something like if the session is closed > then print a message session closed. > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: > http://mobile.msn.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#109878) next »