468,287 Members | 1,959 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,287 developers. It's quick & easy.

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

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?

Sep 1 '05 #1
0 1867

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by dr. zoidberg | last post: by
1 post views Thread by Harman | last post: by
2 posts views Thread by dhnriverside | last post: by
5 posts views Thread by Benedictum | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.