mm sh
mm sh

Reputation: 338

Session and Authentication Timeout don't work

I set Sessionstate an Authentication Timeout in web.Config like below , but users are logout less than 20 minutes

<authentication mode="Forms">
  <forms defaultUrl="~/Default.aspx" loginUrl="~/Login.aspx" name="Login" timeout="43200" slidingExpiration="true"/>
</authentication>

<sessionState timeout="43200"></sessionState>

Upvotes: 0

Views: 351

Answers (2)

windowshostingasp.net
windowshostingasp.net

Reputation: 144

You should disable or increase the application pool timeout in IIS - web site properties.

Regards

Upvotes: 0

Rahul Tripathi
Rahul Tripathi

Reputation: 172608

First of all I would like to clarify that Authentication has very little to do with Session.

Every time a new user hits the website the session starts.

And the amount of time that the authentication cookie is good for on the user's browser is defined by authentication time out.

You can also try to set the Session timeout by Going to IIS and setting Session timeout there as well

Upvotes: 1

Related Questions