RE: stay logged in for session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux