Re: Re: Session hell: register_globals off

From: Date: Sat, 03 Apr 2004 02:47:08 +0000
Subject: Re: Re: Session hell: register_globals off
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-182233@lists.php.net to get a copy of this message
Randall Perry wrote:
on 4/2/04 8:24 PM, Jason Barnett at jasbarne@indiana.edu wrote:
Are you passing the session id between the pages? E.g. are you setting session cookies, or passing the session id as part of the url?
Doesn't php default to using cookies? I'm not doing anything other than using the code I showed.
Hmmm, I misunderstood the problem... OK, just try this and see if the session is starting and any errors starting it: <?php error_reporting(E_ALL); if (session_start()) {
    echo "Session started";
} else {
    echo "No session";
} ?>

« previous php.general (#182233) next »