By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,732 Members | 863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,732 IT Pros & Developers. It's quick & easy.

ASP.NET - How to stay logged in until browser closes?

P: n/a
i'm using forms authentication. i would like for a user to be logged in until
they close the browser. The FormsAuthentication.RedirectFromLoginPage method
takes the parameter createPersistentCookie. For some reason i thought this
meant it either wrote a cookie that lasted for 50 years or a cookie that
existed until the browser closed. Apparently i guessed wrong

If i set createPersistentCookie to false, i am logged out after 20 minutes.
i can't find a way to change this. i originally worried that it was the
SessionTimeout value, either for the IIS virtual directory or from the
web.config but i've changed those parameters up and down with no effect

Needless to say, our users are furious. Hit the save button and pow, you've
lost all your data and have been kicked out of the system without warning

Anyone know how i stay logged in until the browser closes?

-baylor
Sep 1 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.