danielivanov2
asked on
.Net session timeout in webfarm environment
Hello, I have an website build in .net 3.5 and C#, with session timeout set to 60 minutes
But, when hosted within an web farm, the session expires invariably in 20 minutes.
I have tried also with mode="StateServer", as stated here , same result.
What should I do more to keep session alive for 60 minutes?
Thanks,
Daniel
But, when hosted within an web farm, the session expires invariably in 20 minutes.
<sessionState mode="InProc" timeout="60" cookieless="false" cookieName="training" regenerateExpiredSessionId="true">
</sessionState>
I have tried also with mode="StateServer", as stated here , same result.
What should I do more to keep session alive for 60 minutes?
Thanks,
Daniel
can you check whether the timeout has been set to 60 minute in the website's application pool settings?
have a look on the below link to check the idle timeout value
http://bradkingsley.com/iis7-application-pool-idle-time-out-settings/
have a look on the below link to check the idle timeout value
http://bradkingsley.com/iis7-application-pool-idle-time-out-settings/
<sessionState mode="InProc"
timeout="60"
cookieless="false"
cookieName="training"
regenerateExpiredSessionId="true">
</sessionState>
ASKER
I am not able to see and /or modify the application pool, since this feature is reserved to hosting company.
They said the followings are set, after asking: "what is the default value for application pool recycling (in Mb and / or minutes)?":
I'm still awaiting for a response from them regarding using SqlServer session mode.
But, in case the SqlServer session mode is not an option, what else should I do?
Thanks
They said the followings are set, after asking: "what is the default value for application pool recycling (in Mb and / or minutes)?":
Private Memory Limit : 200 MB
Regular Time Interval : 60 min
Virtual Memory Limit : unlimited
Regular Time Interval : 60 min
Virtual Memory Limit : unlimited
I'm still awaiting for a response from them regarding using SqlServer session mode.
But, in case the SqlServer session mode is not an option, what else should I do?
Thanks
oh...k. i thought you have IIS root access.
To store the asp.net sessions in SQL server, have a look on the below tutorials which may help you a lot
http://www.codeproject.com/Articles/104082/Configuring-ASP-session-state-on-SQL-server
http://support.microsoft.com/kb/317604
http://idunno.org/articles/277.aspx
To store the asp.net sessions in SQL server, have a look on the below tutorials which may help you a lot
http://www.codeproject.com/Articles/104082/Configuring-ASP-session-state-on-SQL-server
http://support.microsoft.com/kb/317604
http://idunno.org/articles/277.aspx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You may need to change mode from InProc to SQLServer.
Giannis