RE: [PHP] Sessions not remembered through pages

From: Date: Fri, 06 Oct 2000 15:05:57 +0000
Subject: RE: [PHP] Sessions not remembered through pages
Groups: php.general 
Request: Send a blank email to php-general+get-18893@lists.php.net to get a copy of this message
> > 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

« previous php.general (#18893) next »