Rudebox.co.nr How To Forums

Rudebox How To Forums - Ask Anything, View How To's
Home­FAQ­Search­Register­Memberlist­Usergroups­Log in
Share | 
 

 Solving Session Errors ASP.net

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


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

PostSubject: Solving Session Errors ASP.net   Mon Jun 30, 2008 6: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

View previous topic View next topic Back to top 
Page 1 of 1

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