Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i close the browser so session is not abondon,i know i do logout page,but i know how to session abondon when close the browser.
Posted

C#
Session.Abandon();
 
Share this answer
 
v2
See this answer[^] at ASP.NET for a similar question[^].
 
Share this answer
 
C#
Session.Abandon();
Response.Cookies.Clear();
 
Share this answer
 
Try this:

asp-net-session-on-browser-close[^]

hope it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900