Re: sessions failing to persist
| From: | Curt Zirzow | Date: | Tue, 04 May 2004 05:02:26 +0000 |
| Subject: | Re: sessions failing to persist | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185274@lists.php.net to get a copy of this message | ||
* Thus wrote Michael R. Wayne (phpuser@wayne47.com):
> On Mon, May 03, 2004 at 01:13:11AM -0400, John W. Holmes wrote:
> > Michael R. Wayne wrote:
> > > <form method=post action="xxx.php">
> > > <input type=text maxlength=7 size=7 name=field value="<?echo
> > > $_POST['field']?>">
> > > <input type=submit value="Submit">
> > > </form>
> >
> > Try adding in a hidden element
> >
> > <input type="hidden" name="PHPSESSID"
> > value="<?=session_id();?>">
> >
> > You're relying on PHP rewriting your forms, links, etc, to include the
> > session id, but that doesn't seem to be happening.
>
> I pasted that line just before the </form> and the behaviour remains
> unchanged. No SessionId is never showing up in the access.log
Try changing the method to GET instead of post. In theory this
shouldn't change the current behaviour but POST data generally
doesn't get sent to the logs.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."