Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to make my Session.Abandon() on unexpectedly machine shutdown or internet disable on server when i publish my web application in vb.net.code
please guid its urgent
Posted
Updated 8-Dec-13 20:26pm
v2
Comments
Naresh Pansuriya 9-Dec-13 2:37am    
How ti manage your session in your web application? means session mode

1 solution

Use Global.asax file of Application_End event

VB
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown 
HttpContext.Current.Session.Abandon()
End Sub


Get more info
http://www.shotdev.com/aspnet/aspnet-vbnet-object/aspnet-vbnet-global-asax/aspnet-vbnet-global-asax-application-end/

Access session variable in Global.asax's Application_End event
 
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