how to logout web application when browser closing in c#.net

Posted by Rajasekhar0544 under ASP.NET on 9/13/2012 | Points: 10 | Views : 3236 | Status : [Member] | Replies : 3
how to logout web application when browser closing in c#.net




Responses

Posted by: Hariinakoti on: 9/14/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Rajasekhar,
Please Explain Briefly.Where u login and where u logoout ?.
If u close ur c# application in ur browser it is automatically logout.

Thanks & Regards
Hari

Rajasekhar0544, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajasekhar0544 on: 9/14/2012 [Member] Starter | Points: 25

Up
0
Down
Hi hari,

Thanks for your reply.My question is: In database we are updating the Login Status of each individual. when he is logged in, status =1 and when logs out status =0.
So how can i do this when the browser window is closed and make status=0 in my db.

Thanks&Regards,
Raj Sekhar

Rajasekhar0544, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nkkppp on: 9/14/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Rajashekhar,

Try to the update the database when the session ends i.e in the Global.asax file write the code in the Session_End event.

Hope this helps.

Regards,
Prathap.

Rajasekhar0544, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response