Skip to content
May 31, 2010 / kiranpatils

Would like to set Session Timeout?

Challenge:

Before so many months back i have been assigned for a task where we need to set a session timeout for our whole application. Some enthu guys will tell it is 2 mins. job just go in web.config and do the configuration and it’s done. But let me tell you it’s not that much easy😦. Because there are two things which affects on session timeout Forms Authentication Timeout and Session Timeout

Forms Authentication Timeout Configuration


<system.web>
 <authentication mode="Forms">
 <forms timeout="50000000"/>
 </authentication>
</system.web>

Session Timeout Configuration

<pre><configuration>
   <system.web>
      <sessionState mode="InProc"
                    cookieless="true"
                    timeout="20"/>
      </sessionState>
   </system.web>
</configuration></pre>

Solution

Unfortunately at tha time i haven’t written blog on it[I’m sorry for that]. But Here is the link where someone else did that already[Thanks to him!]:

http://dotnethitman.spaces.live.com/Blog/cns!E149A8B1E1C25B14!210.entry

http://weblogs.asp.net/scottgu/archive/2005/11/08/430011.aspx

http://aspalliance.com/520_Detecting_ASPNET_Session_Timeouts.all

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: