Why is my ASP.NET MVC persistent auth cookie not working?

前端 未结 2 1711
南方客
南方客 2020-12-18 21:22

I\'m using ASP.NET MVC 3, with forms authentication (based on modified vanilla account code you get with file->new).

When you login, I am setting an auth cookie with

2条回答
  •  [愿得一人]
    2020-12-18 21:40

    Solved from comment from @alexl:

    you can check this answer: Making user login persistant with ASP .Net Membership

    Ok, this link seemed to sort it for me - sticking with SetAuthCookie and tweaking my config to explicitly set the cookie name (in the web.confg), and all is working now. Weird! –

提交回复
热议问题