Re: sessions failing to persist
| From: | Michael R. Wayne | Date: | Mon, 03 May 2004 05:29:59 +0000 |
| Subject: | Re: sessions failing to persist | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185167@lists.php.net to get a copy of this message | ||
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
/\/\ \/\/