Logout issue with browser back button

前端 未结 3 866
难免孤独
难免孤独 2021-01-16 11:30

I have created Login/ Logout functionality using ASP.Net MVC 4. I used my own created form for authenticate users against Active Directory. It is working fine with the funct

3条回答
  •  逝去的感伤
    2021-01-16 12:04

    I've only used SetExpires with DateTime.Now that would match you local server time to the cookie. Using DateTime.UtcNow.Addminutes(-1) could be the real culprit here.

    Also, if your are using forms authentication, I don't see your call to

    FormsAuthentication.SignOut();
    

提交回复
热议问题