Re: Deleteing one session
| From: | Curt Zirzow | Date: | Thu, 31 Jul 2003 00:01:21 +0000 |
| Subject: | Re: Deleteing one session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157624@lists.php.net to get a copy of this message | ||
* Thus wrote Ryan A (ryan@jumac.com):
> Hi,
> have around 20 sessions setup and want to delete one of them...
> eg:
> I have the following sessions:
> one
> two
> three
> four
> five
> etc
> I want to delete "four", what should i use? am puzzled by the manual which
> offers these two options:
>
> unset($four);
> session_unregister($four);
>
> which is better? I am starting my sessions with this kind of statement:
> $_SESSION['blah'] = $_GET['blah'];
unset($_SESSION['blah']);
unset($_SESSION['four']);
Remember: don't use session_register, session_unregister, or
session_is_registered when using the $_SESSION var.
> Also any idea how many sessions I can have "on" at one time? or is there no
> limit? I couldnt find anything on that in the manual.
my guess is limit on file size on system. although that isn't an
authoritative answer.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."