Re: [PHP] How to check if a session exists
if (session_is_registered("variable")) { ... } - Original Message - From: "Alex Shi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 20, 2001 11:34 PM Subject: [PHP] How to check if a session exists > If a sesson_id is known, how can check if the session exists? > > Alex > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to check if a session exists
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]