Rudebox.co.nr How To Forums

Rudebox How To Forums - Ask Anything, View How To's
 
HomeFAQSearchRegisterMemberlistUsergroupsLog in

Share | 
 

 Solving Session Errors ASP.net

Go down 
AuthorMessage
Admin
Admin
avatar

Number of posts : 216
Registration date : 2007-01-01

PostSubject: Solving Session Errors ASP.net   Mon Jun 30, 2008 12:40 am

Session Variables expiring before Session Timeout asp.net
Increasing the session timeout


Before you read further I recommend reading the below 3 links:

Code:
http://blogs.msdn.com/david.wang/archive/2005/09/19/Why_do_I_lose_ASP_Session_State_on_IIS6.aspx
http://msdn.microsoft.com/en-us/library/ms178586.aspx
http://idunno.org/articles/277.aspx


Where to look and what to change

Web.config file

Make sure the below 3 nodes are there under system.web


Code:
<system.web>
   <!-- setting a 120 minute timeout.Timeout is in minutes -->
   <sessionState timeout="120" />

   <!-- Make sure you have executionTimeoutThere -->
   <httpRuntime executionTimeout="9000" maxRequestLength="10240"/>   
   

   <!-- No Debug ex. with c#-->
   <compilation debug="false" defaultLanguage="c#">
</system.web>

Quote :
Reset IIS



IIS

Application Pool

Open IIS Manager

Expand Application Pools > DefaultAppPool

Right-click DefaultAppPool and view its Properties

OR

Open IIS Manager

Expand Application Pools > ApplicationNamePool

Right-click ApplicationNamePool

and view its Properties


On the Performance tab, change the value for Shutdown worker processes after being idle for (time in minutes) to a number that is greater than or equal to the session timeout defined in web.config or disable it.

$Configure the application pool to only recycle after 120 minutes of idle-time.


Virtual Directory


Open IIS Manager

Expand Websites

Expand Website / Select Virtual Directory

Right Click > Properties

Click Virutal Directory Tab

Click Configuration

Click Options Tab

Click Options Tab

$ Check All

$ Increase Session Timeout and ASP script TimeOut


Website

Open IIS Manager

Expand Websites

Select Website (ex. Default Website)

Right Click > Properties

Increase Connection Timeout to 900

$ Apply
Back to top Go down
View user profile http://rudebox.editboard.com
 
Solving Session Errors ASP.net
Back to top 
Page 1 of 1
 Similar topics
-
» Software for solving chess problems / puzzles / endgame studies List
» 4th Tata Steel Studies Solving Competition
» Critter 1.6a
» Android Free Chess Software
» NPoints Season 6 is in Session!

Permissions in this forum:You cannot reply to topics in this forum
Rudebox.co.nr How To Forums :: How To - Myspace / Website /Blog Utilities :: ASP .net-
Jump to: