Hello,
I am making a member site. When some one sign in I get the current session and store it into database.
To secure my site,
Step 1 - on each page I am collecting the session value and comparing it with the value available in the database. If it matches, step 2 takes place other wise user is sent to the login page.
Step 2 - Session is regenerated, database is updated with new session.
Now the problem is that, when some one sign's out I am able to clean the session values and the database but when some one forgets to sign out, the session value remains in the database.
Any idea, how should I go about this?
Thank you for helping a novice!