> -----Original Message----- > From: Ed Gorski [mailto:[EMAIL PROTECTED] > Sent: 04 June 2003 13:37 > > You need to append the session name and id to the header > location everytime > you redirect that way. So your header redirect should read: > > header('Location: > researchpapers2.php?'.session_name().'='.session_id());
This always puts the session id in the URL, even when cookies are enabled and it's not needed. As I've pointed out just in the last couple of days, the SID predefined constant is provided for just this situation, so the above should be: header('Location: researchpapers2.php?'.SID); The HTTP spec also demands a full absolute URL in the Location header (and some browsers don't seem to work properly with relative URLs), so you *really* should have: header('Location: http:/your.site.name/path/to/researchpapers2.php?'.SID); Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] 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