Rudebox.co.nr How To Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rudebox.co.nr How To Forums

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

 

 Solving Session Errors ASP.net

Go down 
AuthorMessage
Admin
Admin
Admin


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

Solving Session Errors ASP.net Empty
PostSubject: Solving Session Errors ASP.net   Solving Session Errors ASP.net Icon_minitimeMon 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
https://rudebox.editboard.com
 
Solving Session Errors ASP.net
Back to top 
Page 1 of 1
 Similar topics
-
» Redirect to login page on session expire

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: