Re: Problem with sessions.

From: Date: Sat, 16 Mar 2002 18:34:41 +0000
Subject: Re: Problem with sessions.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88762@lists.php.net to get a copy of this message
maybe you better use: session_unregister("counter"); Greets, Edward ----- Original Message ----- From: "Carlos Costa Portela" <ccosta@servidores.net> To: "php-general mailing list" <php-general@lists.php.net> Sent: Saturday, March 16, 2002 4:49 PM Subject: [PHP] Problem with sessions. > Hello all: > > I am playing with sessions and I have a problem with the > session_destroy() function. If I do a session_register() after calling it, > the session recover the previous values (values that I supposed forgot by > the session). > > At > > http://casa.ccp.servidores.net/tutorials/php/sessions/sessions.php > and > > http://casa.ccp.servidores.net/tutorials/php/sessions/sessions.phps > you > have the web page and the code, respectively. > > The problem is that the "counter" variable maintains the value > even after click "logout". > > If you go to the web page, press: > > login -> counter=0 > other link -> counter=1 > other link -> counter=2 > other link -> counter=3 > logout > other link -> counter=4 > > I suppose that the problem is that I call > session_register("counter"). How must I solve this problem? > > Best regards and thanks in advance, > Carlos. > > [ all about php+web : http://www.improveyourweb.com ] > > _______Carlos Costa Portela_________________________________________________ > | e-mail: ccosta@servidores.net | home page: http://casa.ccp.servidores.net | > |_____Tódalas persoas maiores foron nenos antes, pero poucas se lembran______| > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#88762) next »