Re: possible IE problem
| From: | Richard Lynch | Date: | Wed, 12 Jul 2006 21:59:37 +0000 |
| Subject: | Re: possible IE problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239390@lists.php.net to get a copy of this message | ||
On Mon, July 10, 2006 10:55 am, Schalk wrote:
> Now that the parse error is fixed the login script works fine in FF
> but
> in IE it does not do the redirect. Is there a reason why this code may
> not work in IE? Is there a better way to do this?
>
> $_SESSION['email'] = $email;
> $_SESSION['memberpassword'] = md5($memberpassword);
> header("Location:
>
> http://demo.bdiverse.com/accessible/admin/listmypages.php");
> exit;
Bad News:
Your sessions are using Cookies, unless you've turned on trans_sid and
the SID is in the URL.
The browsers are getting two headers:
Cookie: php_session_id somevalue
Location: http://demo.bdiverse.com/accessible/admin/listmypages.php
Some browsers, as soon as they see the Location: header, will *IGNORE*
the Cookie headers, and just do the re-direct.
Using header("Location:") is prone to all kinds of problems...
If this is on your own server, just do:
include 'accessible/admin/listmypages.php';
exit;
--
Like Music?
http://l-i-e.com/artists.htm