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

forms.timeout returns session.timeout

P: n/a

I am trying to access authentication.forms.timeout using the
following code from Microsoft. But it returns the session.timeout,
which I do not want as for my application this needs to be set longer
than the forms.timeout.

' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration =

'Get the authentication section.
Dim authenticationSection As AuthenticationSection =
CType(Configuration.GetSection( "system.web/authentication"),

litTimeout.Text = authenticationSection.Forms.Timeout.ToString

This code was taken straight from the following url
mshelp://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref12/html/T_System_Web_Configuration_FormsAuthenticationConf iguration.htm

I have session.timeout set to 30 and forms.timeout set to 1. The
above code returns 30.

Can any helpful soul tell me where I am going wrong.


Jun 10 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.