Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 29, 2012 03:23 PM by Abhishek Luv
Dec 29, 2012 01:22 PM|LINK
I downloaded StarterSite a time ago. I want to know is there a timeout for every user that has not checked keep logged in button?
I mean everytime if I login without checking I am automatically loggedout after 10 mins of inactiveness.
Dec 29, 2012 01:27 PM|LINK
Put this in your web.config file
<forms loginUrl="~/Loginurl" timeout="2880" />
Dec 29, 2012 01:31 PM|LINK
In your web.config file, under the <system.web></system.web> element, place the following to get 8 hours (480 minutes)k of login persistence:
<forms timeout="480" />
<!--8 hours (480 minutes)-->
Dec 29, 2012 02:03 PM|LINK
But I want that the user stays logged in untill the browser is on! Than logs out automatically,
However if he has checked rememberMe than he should stay signin for the timelimit he wants!
Will this do that?
Dec 29, 2012 02:17 PM|LINK
That happens with StarterSite Template by default.
Dec 29, 2012 02:19 PM|LINK
You mean that, When users get inactive the server logs them out?
And so what about the rememberMe? Will it log the user in untill he signsout?
Dec 29, 2012 02:22 PM|LINK
Not inactive. When a user closes his browser then he will be logged out automatically Session is lost.
But when he clicks rememberMe then even after closing n open the browser again he will be still logged in.
Dec 29, 2012 02:24 PM|LINK
But my browser logs me out after almost 10% of inactiveness.
Does server activeness depends too?
I mean what if my whole computer goes inactive? If this the problem?
Dec 29, 2012 02:34 PM|LINK
Yes hosting providers can enforce timeouts.
What provider r u using??
Dec 29, 2012 02:54 PM|LINK
Same :/ the localhost:7320