> Just stick it on the end of the URL... I'd like to keep it out of the URL if possible... J > -----Original Message----- > From: Stut [mailto:stuttle@xxxxxxxxx] > Sent: Tuesday, June 19, 2007 1:45 PM > To: John > Cc: php-general@xxxxxxxxxxxxx > Subject: Re: passing sessions with header() > > John wrote: > > The php.net manual states: > > > > <quote> > > > > Session ID is not passed with Location header even if > session.use_trans_sid > > is enabled. It must by passed manually using SID constant. > > > > </quote> > > > > How should the SID be passed manually? I'd like to keep the SID out of > the > > uri, so is a POST variable the best way to handle that? > > > > My problem is that I'm trying to keep a session persistent through a > > header() redirect. which when left to it's own, looses all association > to > > the session . > > Just stick it on the end of the URL... > > header('Location: http://domain.com/dir/script.php?'.SID); > > Or, if you already have a querystring... > > header('Location: http://domain.com/dir/script.php?a=b&'.SID); > > -Stut > > -- > http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php