Re: [PHP] Problem with sessions.

2002-03-17 Thread Carlos Costa Portela
On Mon, 18 Mar 2002, Tom Rogers wrote: > Hi > As you had not started a session at that point there was none to destroy or > unregister :) Ok!!!. Thank you very much, Carlos. http://www.tertulandia.com : sea cual sea tu tema... allí está tu sitio! ___Carlos Costa

Re: [PHP] Problem with sessions.

2002-03-17 Thread Carlos Costa Portela
On Sun, 17 Mar 2002, Tom Rogers wrote: > hi > If you put: > > session_start(); > > as the first line on your page it will behave as you want I think. Thank you very much. It runs now ok :-). But I don't understand why, if I call session_destroy(), the system remember the value of the va

Re: [PHP] Problem with sessions.

2002-03-17 Thread Carlos Costa Portela
On Sat, 16 Mar 2002, Edward van Bilderbeek - Bean IT wrote: > maybe you better use: > > session_unregister("counter"); > I've put that, but it doesn't run. As you can see in the URLs below, my code is: if ($id == "logout") { // the user wants logout :( session_unregister("counter");

[PHP] Problem with sessions.

2002-03-16 Thread Carlos Costa Portela
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/tutoria