Hi,
I been using a function for past few months that refreshes or redirects a user after xx time, for example after logging in etc.
It workes fine in FireFox but notice that in IE7/IE8 and Google Chrome it does not redirect.
I checked in IE and it is enabled in security, and Google is a complete failure and Firefox it works.
This is the function, i use it througout my site and i dread having to do something else as it means editing allot of files.
// Redirect Function
function redirect( $addr , $time=false ) {
if( isset( $time ) ) {
echo '<meta http-equiv="refresh" content="'.$time.'; URL='.$addr.'" />';
} else {
echo '<meta http-equiv="refresh" content="0; URL='.$addr.'" />';
}
}
Basicall when i want to redirect i put where ever in my code i want it:
redirect ("index.php", "3");
It seems meta refresh has either died or is just not reliable.
Anyone suggest what else i can do?
I also tried on another computer and same thing. I really wish there was only one browser and that is FireFox lol, it would save so much time for developers and web designers.
I know i could use Java Script, but this is not really what i want as it is just as non reliable if a user has Java Script disabled.
Thanks
Mat