clear session in classic asp and

eaweb used Ask the Experts™

I have a session named session (loggedin) which verifies if a user has log in or not. My problem is when the user closes his browser and re opens it. He can access the page back without having to login again because the session still exist which is not ok.
How can i clear all the sessions when a user closes his browser?  I already know how to clear a  session when a user log out via the logout script by clicking on sign-out, but how can i do the same automatically when they close their browsers.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

do not persists cookie for session.

open web.config

<sessionstate cookieless="true">

for session state.

For development first delete all cookie then test your application again after applying this chage.
Top Expert 2013
The session will not expire implicitly on browser window close.
There are many hacks floating around the web but nothing 100%.

Check few of them here and see if any of them fits your need:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial