How to expire session on window close

V

Varun Goel

Hi all,
I created one login page using LDAP server authentication now when
i have logged into the system and without logout i just closed the
window and when i again come and open the window it's come as log in.
But it should not show as already login.
Please tell me that how can i expire session on window close.
Thanks & regards
Varun Goel
 
J

John Wilger

Hi all,
      I created one login page using LDAP server authentication now when
i have logged into the system and without logout i just closed the
window and when i again come and open the window it's come as log in.
But it should not show as already login.
Please tell me that how can i expire session on window close.

This is more of a general web app development question, so you might
get better answers in another group. That said, the short answer is
that the session is expired when the session cookie is removed form
the browser. Most browsers delete session cookies when the browser
closes (not just a single window of that browser). It /may/ be
possible to use some javascript to hook into a window close event and
expire a specific cookie; but I wouldn't know how off the top of my
head, and it's possible that it might not work across all browsers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top