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
[sourcecode language=”xml”]
<system.web>
<authentication mode="Forms">
<forms timeout="50000000"/>
</authentication>
</system.web>
[/sourcecode]
Session Timeout Configuration
[sourcecode language=”xml”]
<pre><configuration>
<system.web>
<sessionState mode="InProc"
cookieless="true"
timeout="20"/>
</sessionState>
</system.web>
</configuration></pre>
[/sourcecode]

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