user824910
user824910

Reputation: 1117

Query Regarding the Session time out in IIS

I have hosted a web application in the IIS, And I am using the system Idle Time = 20 minutes (default).

But I face the problem like It gets logged off before that when I am idle for sometime less than 20 minutes.(Note: Client and Server are different here)

And I found a log entry in the server as

2013-01-07 06:54:32 <ClientIPAddress> 1101 <server IP Address> 86 - - - - - Timer_ConnectionIdle -

And

2013-01-07 06:36:14 <client IPAddress> 56282 <server IPAddress> 86 HTTP/1.1 GET /LogOffPage.aspx?SessionExpired=Y&FromPage=%2fajaxpro%Common.ashx - 2 Connection_Dropped TestApp

what could be the issue.

Upvotes: 3

Views: 2252

Answers (3)

Marcus Vinicius Pompeu
Marcus Vinicius Pompeu

Reputation: 1261

[As the fellow peers stated before, there's little info to work upon...]

On IIS 7.0, for .Net applications, session life span depends on several settings.

  • 'Idle Time' from the Pool settings (1)
  • 'Cookie timeout' from the application's Authentication settings
  • 'Session timeout' from the application's Session State settings
  • 'sessionState timeout' when specified within system.web section at the web.config file

(1) this is valid for applications with Session State set to 'InProc'

Please, check all of these configurations to ensure that these settings are set for 20 minutes (1200 seconds) or more.

Also, via Google, I've found reports of 'Connection_Dropped' events due to insufficient memory or server-side script execution time-out.

You may check for such events with with Window's PerfMon.

The information from the following links may be useful:

Good luck!

P.S.: sorry for the lack of screen snapshots ilustrating the settings at IIS. My OS is in portuguese...

Upvotes: 1

Louis Ricci
Louis Ricci

Reputation: 21086

There's not really enough information about your configuration but...

Perhaps your application pool is recycling or shutting down when idle, which is causing the InProc session to also expire before it should? If this is the cause you need to edit your App Pool settings and retest.

Upvotes: 0

erichste
erichste

Reputation: 759

I'm not 100% sure but I think it is worth trying.

There are 2 things going on in IIS ASP.NET apps. One is the idle-timeout which is when IIS shuts down the application when it stays idle. The other is session timeout. It may be that the idle-timeout (which is also 20 min) might be causing this. As you are a single user when you stay idle you are causing both of these to happen together.

Leave session time-out at 20min. Son not change it.

Bu set idle-timeout to 30min. End track again your session time-out.

I'm attaching a screen shot:

enter image description here

Upvotes: 3

Related Questions