RE: [PHP] POST losing SESSION vars?
| From: | Ford, Mike | Date: | Wed, 10 Nov 2004 12:26:24 +0000 |
| Subject: | RE: [PHP] POST losing SESSION vars? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-201659@lists.php.net to get a copy of this message | ||
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
> -----Original Message-----
> From: bbonkosk@tampabay.rr.com [mailto:bbonkosk@tampabay.rr.com]
> Sent: 09 November 2004 18:21
>
> Pass your session along with your form action...
>
> i.e....
>
> $s = SID;
> echo "<form action=\".$_SERVER['PHP_SELF']."?$s\"
> method=post>
You shouldn't need to do this, unless you've changed your PHP configuration
to not add the session ID to a form submission. Contrariwise, you *should*
add the SID to all Location: headers:
header("Location: index.php?" . SID);
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services, JG125, James
Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS,
LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211