Ok, I have a project where I'm working with sessions. All the scripts are served with my index.php based on the parameters received. This index page starts with:
session_name('somename');
session_set_cookie_params(60, '/');
session_start();
So I allways check for certain $_SESSION variables to know that the user is already logged in, but when the session expires the user will be redirected to a login form.
What I want is my loggin form to show some message like the one in Yahoo! Mail when you have been iddle for quite a long time, something like: "It seems that your session has expired, please log in again."
How can I know that the user is on the login page because his session has expired?
Any thoughs will be appreciated!