Re: How to check if a session exists
| From: | Peter J. Schoenster | Date: | Fri, 21 Dec 2001 06:23:15 +0000 |
| Subject: | Re: How to check if a session exists | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78418@lists.php.net to get a copy of this message | ||
On 20 Dec 2001, at 17:34, Alex Shi wrote:
> If a sesson_id is known, how can check if the session exists?
I think this answers the question (function.session-id.html)
> session_id
> (PHP 4 >= 4.0.0)
> session_id -- Get and/or set the current session id
> Description
> string session_id ([string id])
> session_id() returns the session id for the
> current session. If id is specified, it
> will replace the current session id.
>
> The constant SID can also be used to
> retrieve the current name and session id as a string suitable for
> adding to URLs.
Peter
---------------------------
"Reality is that which, when you stop believing in it, doesn't go
away".
-- Philip K. Dick