Re: Browser Problem? Coding Problem? Session Problem?
| From: | Jason Wong | Date: | Fri, 11 Apr 2003 07:23:09 +0000 |
| Subject: | Re: Browser Problem? Coding Problem? Session Problem? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143458@lists.php.net to get a copy of this message | ||
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
*/