You must Sign In to post a response.
  • Category: ASP.Net MVC

    Session is Still Active after browser closed

    Hi i am developing an application in MVC 4 . I have used session property class in it.
    When i close the browser again reopen it the session property still alive.
  • #762839
    Hello Jay,

    If you are using google chrome and if you set "continue where I left off", chrome will restore your browsing data and session cookies.

    even Facebook login (without "remember me") session is retained.

    See : https://support.google.com/chrome/answer/95314?hl=en&p=settings_reopen_pages&rd=1


    You can use
    Session.RemoveAll();
    to remove all sessions from an application on Applicatio_End() method in global.asax


    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"


Sign In to post your comments