maybe you better use: session_unregister("counter");
Greets, Edward ----- Original Message ----- From: "Carlos Costa Portela" <[EMAIL PROTECTED]> To: "php-general mailing list" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] | 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php