zsharp
zsharp

Reputation: 13756

formsauthentication.setauthcookie default expiration?

I thought it was years, but it is getting cleared within 1 hour.

Upvotes: 5

Views: 4578

Answers (1)

RichieHindle
RichieHindle

Reputation: 281485

According to Explained: Forms Authentication in ASP.NET 2.0, "The default value is 30 minutes":

<system.web>
  <authentication mode="Forms">
    <forms loginUrl="Login.aspx"
           protection="All"
           timeout="30"
           ...

Upvotes: 11

Related Questions