Re: Sessions
| From: | pong-TC | Date: | Mon, 18 Mar 2002 17:48:06 +0000 |
| Subject: | Re: Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88962@lists.php.net to get a copy of this message | ||
mosgaard2000@hotmail.com writes:
>Hi,
>
>I got a page that is being reloaded a lot. In the bigging I register a
>Session variable with the SESSION_START and SESSION_REGISTER functions.
>Is it wrong that I keep registering the session?
>Should I also unregister the session at the bottom of the page?
>
>Regards,
>Morten
>
>
I think you should register a variable once. I keep checking its value on
other pages that you want to. You can use session_destroy when you don't
want to keep track of session ie. logout page.
Hope, this would help.