Re: Session variables not working

From: Date: Fri, 14 May 2004 21:09:15 +0000
Subject: Re: Session variables not working
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-186259@lists.php.net to get a copy of this message
From: "Andrew Wood" <ajwood@iee.org> > Using a cookie which is shown in my browser as PHPSESSID > > Yes they're on the same domain but no there's nothing being passed > accross the URL. Should there be? No, not normally. How are you getting from page 1 to page 2? > page1.php... > > ob_start(); > session_start(); > $_SESSION['member_id'] = $member_id; > $_SESSION['password'] = $password; > ob_end_flush(); > > > page2.php... > > ob_start(); > session_start(); > $member_id = $_SESSION['member_id']; > $password $_SESSION['password']; > ob_end_flush(); What's with the output buffering functions? Are you sure $member_id and $password have a value in the first script? I assume there is more code to this, or no? ---John Holmes...

« previous php.general (#186259) next »