I don't get it. Replace my current redirect function with this one? 'Cause if I remove the echo still doesn't work...
This is my redirect function:
Code:
function redirect($url) {
die('<meta http-equiv="refresh" content="0;URL='.$url.'">');
}
Whitespace such as tabs spaces and newlines at the top of the script and any included files also count as output.
It is better to use a location header to redirect the request and send a Location header or the refresh header if you want a time out. This will prevent HTML level blocking of the action and ensure everything from browser to search engine indexers follow them.
Whitespace such as tabs spaces and newlines at the top of the script and any included files also count as output.
It is better to use a location header to redirect the request and send a Location header or the refresh header if you want a time out. This will prevent HTML level blocking of the action and ensure everything from browser to search engine indexers follow them.
As you can see, the script uses the setcookie right after the php tag so there's no spaces or tab or echoes whatsoever. Anyways, I replaced the redirect function, forced a POST and still nothing.
The biggest man you ever did see was once just a baby.
Attach the file to a post. Sometimes PHP can be finicky with character sets and the like and it is very hard to debug without seeing the whole script file.
"Warning: Cannot modify header information - headers already sent by"... ?
Cannot modify header information - headers already sent by (output started at /usr/local/www/data/segti/logout.php:1) in /usr/local/www/data/segti/logout.php on line 2
The biggest man you ever did see was once just a baby.
Attach the file to a post. Sometimes PHP can be finicky with character sets and the like and it is very hard to debug without seeing the whole script file.
You mean this one, right?
The biggest man you ever did see was once just a baby.