473,769 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session Timeout

Jim
The dreaded Session state :-)

All, Just to give a little background this is reagarding an ASP 3.0
application running on IIS6 using the default app pool.

I have set the session timeout to 540 minutes in IIS (under options tab in
Application configuration). There is no code in the Session_OnStart or
Session_OnEnd in the global.asa. Via an include file, each page executes
these no-cache related code:
Response.Buffer = True
Response.Expire sAbsolute = Now() - 1
Response.Expire s = 0
Response.CacheC ontrol = "no-cache"
Response.CacheC ontrol = "private"

Sorry, just wanted to give some background on what we're dealing with.
Anyways, the problem is that the users are saying their session state is
expiring much sooner than 540 minutes. How is this possible? What did I miss?
Are there better techniques to ensure the 540 minute session?

Thanks in advance,
Jim
Jul 22 '05 #1
12 6400
Setting a session timeout any higher than 90 minutes is somewhat iffy.
You should perhaps consider using cookies to keep track of them longer than
that.

It really all depends on why you are even doing this in the 1st place
though.

"Jim" <Ji*@discussion s.microsoft.com > wrote in message
news:9C******** *************** ***********@mic rosoft.com...
The dreaded Session state :-)

All, Just to give a little background this is reagarding an ASP 3.0
application running on IIS6 using the default app pool.

I have set the session timeout to 540 minutes in IIS (under options tab in
Application configuration). There is no code in the Session_OnStart or
Session_OnEnd in the global.asa. Via an include file, each page executes
these no-cache related code:
Response.Buffer = True
Response.Expire sAbsolute = Now() - 1
Response.Expire s = 0
Response.CacheC ontrol = "no-cache"
Response.CacheC ontrol = "private"

Sorry, just wanted to give some background on what we're dealing with.
Anyways, the problem is that the users are saying their session state is
expiring much sooner than 540 minutes. How is this possible? What did I
miss?
Are there better techniques to ensure the 540 minute session?

Thanks in advance,
Jim

Jul 22 '05 #2
Jim
I see. The only reason why the session state is set so high is the users do
not want to be exited from the application during the day. When session
timesout, the app forces the user to exit.

"Kyle Peterson" wrote:
Setting a session timeout any higher than 90 minutes is somewhat iffy.
You should perhaps consider using cookies to keep track of them longer than
that.

It really all depends on why you are even doing this in the 1st place
though.

"Jim" <Ji*@discussion s.microsoft.com > wrote in message
news:9C******** *************** ***********@mic rosoft.com...
The dreaded Session state :-)

All, Just to give a little background this is reagarding an ASP 3.0
application running on IIS6 using the default app pool.

I have set the session timeout to 540 minutes in IIS (under options tab in
Application configuration). There is no code in the Session_OnStart or
Session_OnEnd in the global.asa. Via an include file, each page executes
these no-cache related code:
Response.Buffer = True
Response.Expire sAbsolute = Now() - 1
Response.Expire s = 0
Response.CacheC ontrol = "no-cache"
Response.CacheC ontrol = "private"

Sorry, just wanted to give some background on what we're dealing with.
Anyways, the problem is that the users are saying their session state is
expiring much sooner than 540 minutes. How is this possible? What did I
miss?
Are there better techniques to ensure the 540 minute session?

Thanks in advance,
Jim


Jul 22 '05 #3
Jim wrote:
I see. The only reason why the session state is set so high is the
users do not want to be exited from the application during the day.
When session timesout, the app forces the user to exit.

Which is a good thing, as far as the server is concerned. Sessions consume
system resources. There are other ways to preserve state when it needs to be
preserved for that amount of time. Cookies, databases, files, etc.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #4

Jim,

We're experiencing timeouts like the one you describe. The timeout i
IIS6 is set to 20 minutes, but some of our users say they are "logge
out" after approximately 4 minutes. Our debugging code confirms tha
their session has disappeared.

Did you find a resolution to this issue?

Bria
-
bes725
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Jul 22 '05 #5
Jim
Well no. I solution was to reduce the timeout from 8 hours to 90 minutes.
Wow, I'm not sure what could be causing your session timeout problem of
timing out after just four minutes.

"bes7252" wrote:

Jim,

We're experiencing timeouts like the one you describe. The timeout in
IIS6 is set to 20 minutes, but some of our users say they are "logged
out" after approximately 4 minutes. Our debugging code confirms that
their session has disappeared.

Did you find a resolution to this issue?

Brian

--
bes7252
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 22 '05 #6

bes7252 wrote:
*Jim,

We're experiencing timeouts like the one you describe. The timeout in
IIS6 is set to 20 minutes, but some of our users say they are "logged
out" after approximately 4 minutes. Our debugging code confirms that
their session has disappeared.

Did you find a resolution to this issue?

Brian *


--
redsun
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 22 '05 #7
Good Day,

I'm experiencing the same problem and need a solution not a work arround.
Implementing a different state management system in our production
environment is not a option. Since this will mean retesting and redepolying
our application to 10 sites world wide.

This worked fine on IIS 5.0 so why is it not working on IIS 6.0. What was
changed. And how do we change it back.

Thanks
Jaco Roux

"Bob Barrows [MVP]" wrote:
Jim wrote:
I see. The only reason why the session state is set so high is the
users do not want to be exited from the application during the day.
When session timesout, the app forces the user to exit.

Which is a good thing, as far as the server is concerned. Sessions consume
system resources. There are other ways to preserve state when it needs to be
preserved for that amount of time. Cookies, databases, files, etc.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jun 13 '06 #8
jaco wrote:
Jim wrote:
I see. The only reason why the session state is set so high is the
users do not want to be exited from the application during the day.
When session timesout, the app forces the user to exit.
Good Day,

I'm experiencing the same problem
The text you quoted does not mention a problem and I no longer have the
original thread on my machine.

What is the problem? Or the symptoms of the problem if you haven't
identified the problem?
and need a solution not a work
arround. Implementing a different state management system in our
production environment is not a option. Since this will mean
retesting and redepolying our application to 10 sites world wide.

This worked fine on IIS 5.0 so why is it not working on IIS 6.0.
What was working fine on IIS5 but is no longer working on IIS6?
What was changed. And how do we change it back.

Not sure. Lots of things changed. Have you been to the MS website and
read the "What's New" document for IIS6? Try this:
http://www.microsoft.com/windowsserv...s/default.mspx
or this:
http://msdn.microsoft.com/library/en...13fc08aa92.asp

There's also this dandy Support Center:
http://support.microsoft.com/default...is60&x=15&y=13

as well as the www.iisfaq.com site.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 13 '06 #9
Hi Bob,

We are currently storing about 30 user profile settings as session variables
in a asp site.

Since moving to Windows 2003 R2 with IIS6.0 we are experiencing unexpected
session timeouts. The session timeout interval is set to 480 minutes or 8
hours. Our users are however complaining that they are experiencing timeouts
more randomly and over much shorter intervals.

Users have to log in again when their session is timed out.

Implementing a new Session State Management Sub System using cookies and/or
files and/or SQL DB is not an option purely due to the cost in retesting and
redistributing the site.

So the question remains. Why are sessions timing out prematurely?

Thanks
Jaco Roux

Jun 13 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
43195
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
4
15469
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site | Properties | Configuration | Options | Enable Session State Session timeout 20 (3) within Global.asax.vb file - Session_Start subroutine can use Session.Timeout=x minutes or (4) within any web page, i.e., <web page>.aspx can use...
8
7310
by: Joe Abou Jaoude | last post by:
hi, I have a web app with forms authentication and a timeout session of 20 mins for security reasons. I recently added a feature that allows users (if they want to) to automatically log in (without entering username and password) using the cookies. Now in this case the 20 mins session timeout has no meaning anymore so I m thinking to make the timeout infinite in this case only. my question is, if i do this, and then a user used the...
11
3010
by: Vishal | last post by:
Hello, can anybody tell me how I can extend the session expiry time? Is it done via code or via IIS? Sorry I am new and dont know about this.
5
2084
by: Just D. | last post by:
Do we have any access to the Session object from a different Session? The idea is to save Session of a current user and then if he logs in again then return the Session back. It's not a problem to store, there is only one complicated object in this Session, but to get it on SessionStart to make a copy this is a problem. Maybe using Application or whatever? Or this data is divided and inaccessible anyway? Just D.
8
5498
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how all applications will use sessions and to insure that all application use this method, the session properties cannot be overriden. Within the sessionstate tags, the webadmin (upon my request)r emoved the property for timeout, hoping that...
17
5216
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
4
9457
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change the forms authentication to be a large value for that page also. TIA - Jeff.
25
6100
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
6
3782
by: ChrisAtWokingham | last post by:
I have been struggling with unexpected error messages on an ASP.NET system, using SQL and C#. The application draws organisation charts, based on data stored in the SQL database. Some of the chart editing processes place a very heavy load on the server as the effects of the edit ripple through the organisation structure, requiring potentially large numbers of rows in one of the tables to be updated. (I have done it this way to make the more...
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9857
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.