Thanks for Peter's input.
Hi Andy,
Though there does exist the "timeout" setting in the web.config for forms
authentication ticket, however, this is an global level setting for the
entire application which is not recommended to change frequently(it is load
into memory at appliation's startup time). Also, if you programmtically
change this value in web.config (directly through file IO api or the
WebConfigurationManager class), the ASP.NET application will restart
whenever it detect web.config file has been changed. So this is not
recommended.
As Peter has mentioned, the Forms Authentication Ticket is actually
persisted in a cookie (by default if you do not use cookieless), therefore,
the timeout value is also depend on that cookie's timeout. If you want to
control different timeout for different user, you can consider do the Forms
Authentication ticket & cookie generation your self in code. Thus, you can
set the timeout value of the cookie manually, here is a kb article
demonstrate this:
#How To Implement Forms-Based Authentication in Your ASP.NET Application by
Using C# .NET
http://support.microsoft.com/kb/301240/en-us
In addition, here is another good kb article explaining the forms
authentication's ticket and cookie:
#Understanding the Forms Authentication Ticket and Cookie
http://support.microsoft.com/kb/910443/en-us
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.