views:

80

answers:

2

I have my site up and running just fine using the kit.

My question is, when you click on the check box to stay logged in, is their a way to extend the amount of time that you stay logged in for. My client would like something like an hour.

+1  A: 

Yeah, you set this in your Forms timeout in the web.config

    <authentication mode="Forms">
       <forms loginUrl="~/Account/LogOn" timeout="2880"/>
    </authentication>

Which is currently set to 48 hours (2880/60).

Change it to 60 if you'd like an hour. Although, something much longer would be more appropriate.

davewasthere
+2  A: 

Try to increase authentication/forms/timeout value in web.config:

<authentication mode="Forms">
    <forms loginUrl="~/Account/LogOn" timeout="60"/>
</authentication>

From MSDN:

Specifies the time, in integer minutes, after which the cookie expires. ... The default is "30" (30 minutes).

eu-ge-ne