formsauthentication.setauthcookie默认过期?

zsh*_*arp 5 asp.net authentication

我认为这是几年,但它在1小时内被清除.

Ric*_*dle 11

根据解释:ASP.NET 2.0中的表单身份验证,"默认值为30分钟":

<system.web>
  <authentication mode="Forms">
    <forms loginUrl="Login.aspx"
           protection="All"
           timeout="30"
           ...
Run Code Online (Sandbox Code Playgroud)