ASP.net Session Destroy if he closes the browser

前端 未结 8 1098
孤独总比滥情好
孤独总比滥情好 2021-01-17 03:34

I have an website. When the user is logged the session details will loaded. When the user logged out the session details will abandoned. (Log out by clicking the logout menu

8条回答
  •  迷失自我
    2021-01-17 04:10

    As part of your handling of the logout, call Session.Clear() to clear the key/value pairs:

    http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.clear.aspx

提交回复
热议问题