Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > forms.timeout returns session.timeout

Thread Tools

forms.timeout returns session.timeout

Posts: 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.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorted Returns List and Reversed Returns Iterator ++imanshu Python 7 08-23-2008 04:25 AM
Hash#select returns an array but Hash#reject returns a hash... Srijayanth Sridhar Ruby 19 07-02-2008 12:49 PM
createImage sometime returns null and sometime returns non-null. vizlab Java 3 10-17-2007 11:21 AM
block returns and hash element returns Trans Ruby 2 11-06-2005 12:15 PM
Device search returns devices with zero length strings =?Utf-8?B?U3RlcGhlbiBJbmtwZW4=?= Wireless Networking 2 07-15-2005 12:26 AM