Why are my forms authentication tickets expiring so fast?

前端 未结 5 2155
鱼传尺愫
鱼传尺愫 2021-02-08 14:26

I\'m using forms authentication in an ASP.NET application. I configure the FormsAuthenticationTicket to expire in 1 year but it actually expires after 1 hour or so.

5条回答
  •  旧巷少年郎
    2021-02-08 14:57

    I don't see anything wrong with the code. What browser are you using, perhaps it doesn't recognize the expiration date of 1 year? I would look at the response headers with fiddler or some such tool and see what's actually being sent.

提交回复
热议问题