Re: Sessions

From: Date: Thu, 02 Nov 2000 19:50:53 +0000
Subject: Re: Sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23322@lists.php.net to get a copy of this message
It depends... you can set a timeout in seconds for the session, which is stored in a cookie by default, but that can be changed too to be stored in a database. But by default, the session cookie is stored on the clients side, a txt file is stored on your system, and any page that opens a session with the same user BEFORE he closes his browser... those variables are retained.... and the session is ended (destroyed) when the user exits. check PHP.net for session tutorials.... or go here... I found a good one. http://www.devshed.com/Server_Side/PHP/Sessions/ that's where I learned. ----- Original Message ----- From: "Jan van Schaijk" <janvanschaijk@planet.nl> To: "Php-list" <php-general@lists.php.net> Sent: Tuesday, October 31, 2000 4:14 PM Subject: [PHP] Sessions > Hi, > > Can I use a session in stead of Cookies? > So, If I do this: > > session_start("Hello"); > session_register("Counter"); > $Counter++; > > What happend then if the user close his browser and the next day he looks > again? > > Will the $Counter reset? Or can I use it with it's value (stored in a > Cookie?)? Or do I have to test if $counter contains a value? > > Jan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#23322) next »