Redirection with header (was Re: [PHP] Cookies and sent headers)
| From: | Otto Wyss | Date: | Sun, 19 Aug 2007 06:52:53 +0000 |
| Subject: | Redirection with header (was Re: [PHP] Cookies and sent headers) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261012@lists.php.net to get a copy of this message | ||
M. Sokolewicz wrote:
emits). Now, I'm not going to go into how redirecting that way won't work (or at least shouldn't), but a hint would be to do it properly using header('Location: [...]') instead. I'm aware that using Javascript within a PHP code block doesn't seemslogical yet I haven't known header ('Location...). In my case I could easilly do without redirection but just exit and fall back on the calling page. Yet I want to remove the login page from the browser history. Does the header function have the same effect? O. Wyss