I am creating a session variable for anonymous user to access a certain page. I need to close this session after close the browser. Can anybody help me to do that?

Comments

Session isn't destroyed on browser close

I think while loading that particular page you should destroy or unset the old Session first and then set new session for the user.

Thanks

Thank for your reply. Can you please tell how to get the old session id?

nobody click here