Re: Session variables not working
| From: | John W. Holmes | Date: | Fri, 14 May 2004 20:59:02 +0000 |
| Subject: | Re: Session variables not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186257@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Andrew Wood" <ajwood@iee.org>
To: <php-general@lists.php.net>
Sent: Friday, May 14, 2004 4:48 PM
Subject: [PHP] Session variables not working
> I'm trying to set the following two vars on one page then read their
> values on another like this:
[snip]
> But on page2.php the variables are null. Can anyone help me out with
> this. I must be doing something really obvious wrong.
How are you getting from page 1 to page 2? Is a session cookie being set?
Are page 1 and page 2 on the same domain? Do you see a PHPSESSID in the URL?
---John Holmes...