setting a timeout using a manually created forms authentication ticket
Posted
by
Nicklamort
on Stack Overflow
See other posts from Stack Overflow
or by Nicklamort
Published on 2010-12-29T01:48:59Z
Indexed on
2010/12/29
1:54 UTC
Read the original article
Hit count: 516
The constructors for manually creating FormsAuthenticationTicket objects force us to set an "expiration" value, and this value overrides the "timeout" setting in web.config in my tags, which is not what I want, because now the user doesn't timeout. The "session" just expires at the given time.
I need to manually create my ticket for UserData reasons, and it is just the way I decided to build my app. I guess I could spend a whole lot of time and redo the way my app. authorizes, and store the "userdata" elsewhere... but this seems extremely tedious for something so small..
Is there anyway to manually create an Auth Ticket and still maintain timeout settings?! And by timeout, I mean resetting the timer on user activity. Not a fixed timeout! Please help!
© Stack Overflow or respective owner