|
 |
aspx thread: Session Timeout <sessionState Timeout="20"/> Doesn't work???
Message #1 by marl@s... on Wed, 19 Feb 2003 00:10:41
|
|
If I set this in the Machine.Config file then it's set to 20 minutes.
<sessionState . . . Timout="20" . . . />
If that's true then why does it keep timing out in like 5 minutes?
Am I missing something?
Message #2 by "Greg Quinn" <greg@i...> on Wed, 19 Feb 2003 08:39:13 +0200
|
|
Hi Marl,
Remember that if you have a web.config file for that application, that it
will override the machine.config timeout.
So in the web config for the application, if you want the session timeout to
be 20 minutes, it must look something like this...
<configuration>
<system.web>
<sessionState
timeout = "20"
mode = "InProc"
stateConnectionString = "tcpip=127.0.0.1:42424"
cookieless = "false"
/>
</system.web>
</configuration>
Now also remember that if you are modifying your code, occasionally the
application will recycle and you will lose all session information. In other
words, if you are working on your application, and saving code, or modifying
the \bin folder in any way, your application will recompile, and all session
state will be lost, that may be why you are losing session state every few
minutes.
Also, make sure you have loaded asp.net service packs 1 & 2, where some
recycling issues have been addressed
Greg
----- Original Message -----
From: <marl@s...>
To: "ASP.NET" <aspx@p...>
Sent: Wednesday, February 19, 2003 12:10 AM
Subject: [aspx] Session Timeout <sessionState Timeout="20"/> Doesn't work???
> If I set this in the Machine.Config file then it's set to 20 minutes.
> <sessionState . . . Timout="20" . . . />
>
> If that's true then why does it keep timing out in like 5 minutes?
>
> Am I missing something?
Message #3 by marl@s... on Wed, 19 Feb 2003 15:01:03
|
|
I think it's because I'm recompiling then.
I don't have a Web.config in the directory.
Thanks.
> Hi Marl,
Remember that if you have a web.config file for that application, that it
will override the machine.config timeout.
So in the web config for the application, if you want the session timeout
to
be 20 minutes, it must look something like this...
<configuration>
<system.web>
<sessionState
timeout = "20"
mode = "InProc"
stateConnectionString = "tcpip=127.0.0.1:42424"
cookieless = "false"
/>
</system.web>
</configuration>
Now also remember that if you are modifying your code, occasionally the
application will recycle and you will lose all session information. In
other
words, if you are working on your application, and saving code, or
modifying
the \bin folder in any way, your application will recompile, and all
session
state will be lost, that may be why you are losing session state every few
minutes.
Also, make sure you have loaded asp.net service packs 1 & 2, where some
recycling issues have been addressed
Greg
----- Original Message -----
From: <marl@s...>
To: "ASP.NET" <aspx@p...>
Sent: Wednesday, February 19, 2003 12:10 AM
Subject: [aspx] Session Timeout <sessionState Timeout="20"/> Doesn't
work???
> If I set this in the Machine.Config file then it's set to 20 minutes.
> <sessionState . . . Timout="20" . . . />
>
> If that's true then why does it keep timing out in like 5 minutes?
>
> Am I missing something?
|
|
 |