Reputation: 1340
I have a login system based on PHP sessions. When user clicks on logout link, script calls session_destroy()
function and the user logs out (session file on server with user data is deleted). When user just closes the browser, he logs out too (the cookie expired on close), but session file with user data is still kept on server.
So is there any vulnerability from the viewpoint of security? If so, what I have to do in order to prevent it?
Upvotes: 0
Views: 960
Reputation: 166
i think you can use session.gc properties to remove old session files.
Upvotes: 1