.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to kill the Session when we close the browser?

Posted By: Deco     Posted Date: October 31, 2010    Points:2   Category :C#
Where i need to write the code to kill the session when a user close the browser button? please tell me

Author: Syed Shakeer Hussain             
Posted Date: November 01, 2010     Points: 5   


Use Session.Abandon method

Author: ASPEvil             
Posted Date: November 01, 2010     Points: 5   

No, when the user will close the browser then the session will also be closed as the session is related to the browsing.

If you are having some user login system with your website, then write the code to kill the session at whenever a user will click on a "LogOut" or "SignOut" button.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend