Re: session not set, server configuration?
| From: | Noel Wade | Date: | Thu, 09 Jan 2003 12:10:22 +0000 |
| Subject: | Re: session not set, server configuration? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130925@lists.php.net to get a copy of this message | ||
James -
Don't know how you're working with Cookies and sessions for sure, but the
default / "easy" way to check for an established session is to put
"session_start();" at the top of every page that's going to access the
session variables. That will check for an established/open session and make
the registered session variables accessible to the page.
Then a logical check is as simple as using "session_is_registered()" like
this:
if (session_is_registered("registered_variable_name"))
//do something here if the person has already registered their session
else
//session not registered!
Hope this helps!
Take care,
--Noel