Re: sessions failing to persist
| From: | John W. Holmes | Date: | Mon, 03 May 2004 05:13:11 +0000 |
| Subject: | Re: sessions failing to persist | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185165@lists.php.net to get a copy of this message | ||
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.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com