Re: Session variables not working

From: Date: Fri, 14 May 2004 21:11:52 +0000
Subject: Re: Session variables not working
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-186261@lists.php.net to get a copy of this message
Either typing the URL directly or by using a hyperlink. On 14 May 2004, at 22:09, John W. Holmes wrote:
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 (#186261) next »