I've got a web application that that starts a session when it is loaded and if the user is logged on then stores the session id into a db.
Now my question is can I from a different page check if the session is still active on the server? I would like to do this so that I can then compare the session ID on the server and in the DB.
Can this be done?

Thanks for the help and a nice day to everyone