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 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