RE: [PHP] Sessions not remembered through pages

From: Date: Fri, 06 Oct 2000 15:01:52 +0000
Subject: RE: [PHP] Sessions not remembered through pages
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18895@lists.php.net to get a copy of this message
On Fri, 6 Oct 2000, Boget, Chris wrote: > > > Is there anything I need to do in my code to tell PHP to > > > send through the SID automatically? > > The URL rewriter only kicks in, if the session was started. > > So, either you call session_start() in a prepended script > > (auto_prepend_file) or start sessions automatically > > (session.auto_start). > > I do have this. My (abbreviated) code looks like this: > > <? > > session_start(); > // do stuff here > header( "location: ./new_page.php3" ); > exit(); > > ?> > > And when I get to newpage.php3, there is no session info in > the url and I cannot access the $PHPSESSID (for obvious > reasons). > > Chris > The URL rewriter rewrites HTML, not HTTP headers. header("Location: somepage.php3?".SID); - Sascha

« previous php.general (#18895) next »