Greetings all,
I'm using this to manage timeout's:
if ($_SESSION['Timeout'] + 60 * 60 < time()) { //* SESSION timeout - 1 hour (minutes * seconds) *//
$_SESSION['Status'] = "1"; //* Use on signin page to display a message about timeout. *//
session_write_close();
header("Location: https://mysite.com/signin.html");
exit;
}
This was working fine when I use I.E. 9.
I just upgraded I.E. to 11, and started testing with v 11. The code above remained the same, however, the page were this management code is doesn't redirect as it used to, just is blank (because of exit). I know the code above is being hit, as I can echo out something in there. So, it doesn't do the header redirect, but does hit the exit because the rest of the page code doesn't load (as expected).
Using F12, I can see in the Network panel that when I refresh the page, I get a Result of "(Aborted)." 😕
I've tried removing the "session_write_close();" (even though it works fine with I.E. 9), still doesn't redirect in I.E. 11.
I've also, since, tried using this:
header("Location: https://mysite.com/signin.html",TRUE,302);
but that too doesn't redirect in I.E.11.
Not sure what this means as far as what is "aborted" and why the page doesn't get redirected anymore with I.E. 11.
Ideas? 😕