logo       
Google Custom Search
    AddThis Social Bookmark Button

HTTP::redirect(): msg#00675

Subject: HTTP::redirect()
Hello,

Why HTTP::redirect() just use a header Location instead of a complete http
redirect ?
There are problems sometimes with url like index.php?a=xxx&g=xxx.

+ header('Request-URI: ' . $url);
+ header('Content-Location: ' . $url);
header('Location: ' . $url);
exit();

Also, most of the time, we don't want a cache for redirections, so we could
put an option with something like this :

header('Expires: Sat, 1 Jan 2000 00:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');

What do you think about this ?

thanks !

Olivier



-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>