Hello all,
I basically want to thwart against session hijacking by using session ID checking. Simplly put, I have a popup window where I want to use a meta http-equiv=``refreshâ to check whether the session id is okay. If there is no refresh, the user is logged off.
Other things to mention is that once a user is logged on to the system, the session_id() is inserted into a mysql session table. When the refresh happens, it gets the session_id() from the browser and looks for it in the table. If it's there, it keeps the user logged in, if not logs the user out. I have all this implemented, but I'm not exactly sure if it's working correctly.
Is there any way to test this? Also, if the popup is accidently closed I want the user to be logged off, anyways to do this?
Thanks for your time.
P