शेखर
शेखर

Reputation: 17614

Session Time Out in Asp.net 4.0 on IIS 7.5

I want to set timeout for my web application for 12 hours.

I have done setting in web.config file as:

<system.web>
     <sessionState timeout="720" />
</system.web>

As suggested in the following post:

Kindly provide me some idea.

Upvotes: 2

Views: 10138

Answers (2)

HGMamaci
HGMamaci

Reputation: 1387

You should set all following:

Application Pool / Advanced Settings. There the option Idle Timeout should be set in minutes.

Then within the web.config file in system.web section you should also set the Authentication/Forms, SessionState and RoleManager timeouts, if applicable.


<authentication mode="Forms"><forms loginUrl="~/default.aspx" name=".ASPXFORMSAUTH" timeout="120" /></authentication>

<sessionState cookieless="AutoDetect" cookieName="TYS_ADMIN_SessionId" timeout="120" />

<roleManager ... cookieTimeout="120" defaultProvider="GMRoleProvider" enabled="true">...</roleManager>

Upvotes: 0

Abhinandy
Abhinandy

Reputation: 56

You can try out WMI(Windows Management Instrumentation) script it can help you.You need to have sufficient priveleges to implement the Script.

follwing are the links you can check to get more information.

http://bendera.blogspot.in/2010/12/configuring-ica-rdp-timeout-values.html

http://technet.microsoft.com/en-us/library/cc771956%28v=ws.10%29.aspx

Upvotes: 1

Related Questions