Does anyone know of a utility or method by which I can have the login page information change when a user is logged out due to inactivity. Currently, after a few miuntes of inactivity I popup a login message and redirect the user to logout.html, ((which is a tpl) where the session & cookies are destroyed.
I’m currently using the following for redirecting the user:
header("Location: " . $this->site->hosts->manager . 'login.php');
After redirection, I would like to display an alert message displaying “Timed out due to inactivity” beneath the login box.
Any suggestions on how to accomplish this request?
You could use a flag to tell the page why the user was logged out..