RE: [PHP] stay logged in for session
| From: | Zoltán Németh | Date: | Fri, 18 May 2007 12:17:10 +0000 |
| Subject: | RE: [PHP] stay logged in for session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255127@lists.php.net to get a copy of this message | ||
2007. 05. 18, péntek keltezéssel 12.43-kor Edward Kay ezt írta:
> > > HTTP Location headers require the full hostname, i.e.
> > >
> > > header("Location:
> > > http://www.example.com/page_to/redirect/to.php");
> >
> > that is true, but usually it works with relative url-s also
> >
> > greets
> > Zoltán Németh
> >
>
> Just because some user agents handle non-standard data doesn't make it correct. The HTTP
> spec says it has to be an absolute URI [1] so until that changes, I'll keep using and
> recommending absolute URIs.
>
> E
>
> [1]
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
>
yes I know, you're right. I just wanted to add some additional info, but
with saying "usually" I meant if you want to be sure, don't rely on
this. I personally do not rely on this anymore, but some of my older
scripts do and they all work up until now. maybe in the future I will
have to rewrite them according to this requirement, but I hope not in
the near future ;)
greets
Zoltán Németh