开发者

Forms Authentication in MVC 3 fails in Safari / production

开发者 https://www.devze.com 2023-02-07 11:44 出处:网络
I\'m using Forms Authentication in MVC 3 and all works great on my development wo开发者_JAVA百科rkstation, but when I post to the production environment authentication fails... but ONLY for Safari. It

I'm using Forms Authentication in MVC 3 and all works great on my development wo开发者_JAVA百科rkstation, but when I post to the production environment authentication fails... but ONLY for Safari. It works great in IE, Firefox and Chrome, but not Safari.

Any pointer would be most appreciated!

EDIT:

It seems that setting a non-persistent cookie works:

FormsAuthentication.SetAuthCookie(user, false);

So this would appear to be something to do with the expiry date?

Anything particular about expiry date and Safari?


ASP.NET Forms Authentication with Windows Safari

0

精彩评论

暂无评论...
验证码 换一张
取 消