RE: POST losing SESSION vars?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm



> -----Original Message-----
> From: bbonkosk@xxxxxxxxxxxxxxx [mailto:bbonkosk@xxxxxxxxxxxxxxx] 
> 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@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux