Re: Problem with sessions.
| From: | Tom Rogers | Date: | Sat, 16 Mar 2002 17:46:33 +0000 |
| Subject: | Re: Problem with sessions. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88758@lists.php.net to get a copy of this message | ||
Hi
When you create the new session give it a different name.
Tom
At 01:49 AM 17/03/2002, Carlos Costa Portela wrote:
Hello all:I am playing with sessions and I have a problem with thesession_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).Athttp://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 valueeven 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=4I suppose that the problem is that I callsession_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