Problem with sessions.
| From: | Carlos Costa Portela | Date: | Sat, 16 Mar 2002 15:49:59 +0000 |
| Subject: | Problem with sessions. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88746@lists.php.net to get a copy of this message | ||
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______|