| re: Session Timeout Not working, ASP.NET
"Aryan" <manoj241176@gmail.com> wrote in news:1148990463.474673.222720
@r44g2000cwb.googlegroups.com:
[color=blue]
> Hi,
> I have put my session related parameter in web.config under
> system.web, given below is the code for same.
>
> <system.web>
> <sessionState timeout ="1440" mode ="InProc" />
> </system.web>
>
> this session timeout is not working out, as this shows me login page
> again if i dont do something for more then 20 minutes.
>
> I am using ASP and ASP.NET 2.0 both in my application, so for ASP i
> have set session timeout property in Global.asa for 1440 minutes, and
> for ASP.NET i have set in under web.config file. So ASP page is working
> fine for Session, but for .NET pages its not working. Can any one tell
> me where am i wrong???
>
> Thanks in Advance
> Manoj Singh.
>
>[/color]
There are two different types of timeout. One is an authentication
timeout (which redirects you to a login page) and the other is a session
timeout (which drops all session vars). I set the session timeout in
global.asax session_start by using session.timeout. IN your webconfig,
you can set the authentication timeout by editing this tag:
<authentication mode="Forms">
<forms timeout="1024"/>
</authentication>
I believe that both timeouts default to 20 minutes so if you want your
session to time out before your auth, set the <forms timeout="30"/> or
something.
--
*~!NumbLock!~* |