Override session timeout

L

lekshmi

In my machine.config file, httpRuntime
executionTimeout="90".
and it dosent have <location> attribute nad
<allowOverride> attribute.
But my thread dies off after 1hr.
In the web.config, i have given httpRuntime
executionTimeout="7200"

Why is this happening?
 
J

Juan T. Llibre

The httpRuntime executionTimeout attribute is expressed
in seconds, so it can hardly have an effect for the session
setting you want.

You could be creating a performance bottleneck
by specifying 7200 for httpRuntime executionTimeout,
since that's the "choke" time for a request which isn't
being completed.

Set it back to 90.

The web.config value you need to set, if you need 2 hours
duration for your sessions, is the sessionState timeout :

<sessionState timeout="120" />

Be forewarned that this setting ( 120 minute session-length )
will require quite a bit more memory resources than the
20 minute default setting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top