[ciapug] header redirects in IE
ciapug@cialug.org
ciapug@cialug.org
Fri, 06 Jun 2003 18:44:00 +0000
Well, no luck with any of the redirects, so I used some fallback db_auth code.
Thanks for the suggestions though, I'll keep them around for the future.
> I found this somewhere and it works with (our limited audience using) ie6sp1
> and mozilla 1.2.1 so far:
>
> function redirectTo($relativeUrl) {
> header("Location: http://".$_SERVER['HTTP_HOST']
> .dirname($_SERVER['PHP_SELF'])
> ."/".$relativeUrl);
> }
>
> Using php 4.3.0
>
> -----Original Message-----
> From: Dave J. Hala Jr. [mailto:dave@58ghz.net]
> Sent: Friday, June 06, 2003 10:12 AM
> To: PHP List
> Subject: Re: [ciapug] header redirects in IE
>
>
> I had this problem too... What I did was use the entire url.
>
> if (!$_SESSION["s_isadmin"]) {
> > header("location: http://www.imsocool.com/login.php");
> > }
> >
>
> On Wed, 2003-06-04 at 15:08, bvonahsen@mchsi.com wrote:
> > I'm trying to do redirects with php 4.2.0, but IE is acting funny. All of
> the
> > pages in the admin area have this code to make you log in if you haven't:
> > if (!$_SESSION["s_isadmin"]) {
> > header("location: login.php");
> > }
> >
> > This works great in NS4.8 and mozilla 1.3, but IE 6 SP1 redirects to the
> > non-admin login page (../login.php, not ./login.php). Anyone know why?
> If I
> > change the pagename to something else (like Xlogin.php), I get a 404, I'm
> > assuming because there is no ../Xlogin.php. I saw some issues with IE 5.5
> on
> > php.net, but none of those fixes helped. Any thoughts? A non-relative
> address
> > doesn't work either.
> > _______________________________________________
> > ciapug mailing list
> > ciapug@cialug.org
> > http://cialug.org/mailman/listinfo/ciapug
> --
>
> "...Unix, MS-DOS and Windows NT (also known as the Good, the Bad, and the
> Ugly)"
>
> OSIS
> Dave J. Hala Jr.
> 641.485.1606
>
>
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug