Re: Browser Problem? Coding Problem? Session Problem?

From: Date: Fri, 11 Apr 2003 16:37:41 +0000
Subject: Re: Browser Problem? Coding Problem? Session Problem?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-143536@lists.php.net to get a copy of this message
Okay, so I figured it out. Mozilla isn't passing around the session! What's up with this? Here's my code once it's authenticated: $_SESSION['logged_in'] = true; $_SESSION['username'] = $_POST['username']; header ("location: index2.php"); in index2.php, i have session_start at the beginning of the page, but when I: print_r($_SESSION); I get: array() -Michael On Fri, 2003-04-11 at 07:41, Mike wrote: > I fill in and submit the form, and nothing gets sent in $_POST > variables. I don't know why... > > -Michael > On Thu, 2003-04-10 at 23:23, Jason Wong wrote: > > On Friday 11 April 2003 13:45, Mike wrote: > > > > > I've tried this on Mozilla 1.3, 1.4a and IE 6. It works on IE 6, but not > > > mozilla. (Or at least it doesn't seem to.) I've tried clearing my > > > caches, cookies, everything (even unsetting all session variables). > > > > [snip] > > > > > if ($query) { > > > $_SESSION['logged_in'] = true; > > > $_SESSION['username'] = $db_check['username']; > > > header("location: index.php"); > > > } else { > > > header("location: index.php?wrong=true"); > > > } > > > } > > > > > > On Mozilla I just keep getting the login page, again and again. It works > > > first time on IE... > > > > Do you mean: > > > > a) you go to the login page, fill in and submit the form, then the login page > > displays again > > > > OR > > > > b) you go to the login page, then it 'refreshes' and redisplays the login page > > etc. > > > > And for debugging I would comment out the header() lines and replace with an > > echo "Redirecting to <wherever>". > > > > -- > > Jason Wong -> Gremlins Associates -> www.gremlins.biz > > Open Source Software Systems Integrators > > * Web Design & Hosting * Internet & Intranet Applications Development * > > ------------------------------------------ > > Search the list archives before you post > > http://marc.theaimsgroup.com/?l=php-general > > ------------------------------------------ > > /* > > If one cannot enjoy reading a book over and over again, there is no use > > in reading it at all. > > -- Oscar Wilde > > */

« previous php.general (#143536) next »