RE: [PHP] Session Problem
| From: | Brad Fuller | Date: | Thu, 15 Feb 2007 21:57:04 +0000 |
| Subject: | RE: [PHP] Session Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248932@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: LoneWolf [mailto:ltempleton@wanisoft.com]
> Sent: Thursday, February 15, 2007 4:35 PM
> To: php-general@lists.php.net
> Subject: [PHP] Session Problem
>
> I am having a problem where it appears that the session is not being saved
> properly.
>
> While on a page, I can start a session and set variables to it. however,
> when I go to the next page.. the session variables appear to have been
> cleared out.
Is there anything unusual about your setup that you failed to mention?
(e.g. using <frameset> etc.)
A few things to check:
- Make sure cookies (at least session cookies) are enabled in your browser.
- Try browsing the site from another computer.
- Make sure session_start() is being called before any HTML output
(including blank lines before the first <?php tag)
-Brad