473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sessions Expiring Prematurely on Production

Hi all,

For an application that I'm working on, upon successful
authentication, Session.Timeout is set to 60 minutes. This behaviour
works as expected on my own machine. If I refresh a page after 40
minutes of inactivity, it remains, but after 61 minutes, it expires
and I am sent back to the login page.

However, once this code is put on the Production server, the sessions
time out after only 20 minutes, even though the code sets it to 60.
What could be causing this? The application is compiled before being
put on Production, in case that matters.

Thanks.

Feb 12 '07 #1
6 2104
In case sessions are set to use in-Proc mode, there can be various reasons
why it expires. AppDomain restarts would cause sessions to expire, and
AppDomain restart can happen when web.config is modified, bin folder
modified, or multiple files / directories are created etc etc, it can even
be a virus scanner touching some files.

See following posts for further information:
http://blogs.msdn.com/tess/archive/2...s.aspx#1572598

http://weblogs.asp.net/scottgu/archi...14/433194.aspx
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"Andrew Chung" <az***********@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
Hi all,

For an application that I'm working on, upon successful
authentication, Session.Timeout is set to 60 minutes. This behaviour
works as expected on my own machine. If I refresh a page after 40
minutes of inactivity, it remains, but after 61 minutes, it expires
and I am sent back to the login page.

However, once this code is put on the Production server, the sessions
time out after only 20 minutes, even though the code sets it to 60.
What could be causing this? The application is compiled before being
put on Production, in case that matters.

Thanks.
Feb 12 '07 #2
In addition to what Teemu has said, are you sure that it's the Session timing
out and not the fact that the Forms Authentication Ticket may have expired?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Andrew Chung" wrote:
Hi all,

For an application that I'm working on, upon successful
authentication, Session.Timeout is set to 60 minutes. This behaviour
works as expected on my own machine. If I refresh a page after 40
minutes of inactivity, it remains, but after 61 minutes, it expires
and I am sent back to the login page.

However, once this code is put on the Production server, the sessions
time out after only 20 minutes, even though the code sets it to 60.
What could be causing this? The application is compiled before being
put on Production, in case that matters.

Thanks.

Feb 12 '07 #3
On Feb 12, 12:01 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
In addition to what Teemu has said, are you sure that it's the Session timing
out and not the fact that the Forms Authentication Ticket may have expired?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Andrew Chung" wrote:
Hi all,
For an application that I'm working on, upon successful
authentication, Session.Timeout is set to 60 minutes. This behaviour
works as expected on my own machine. If I refresh a page after 40
minutes of inactivity, it remains, but after 61 minutes, it expires
and I am sent back to the login page.
However, once this code is put on the Production server, the sessions
time out after only 20 minutes, even though the code sets it to 60.
What could be causing this? The application is compiled before being
put on Production, in case that matters.
Thanks.
I'm not using Forms Authentication, the Authentication is done
manually.

Feb 12 '07 #4
On Feb 12, 12:01 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
In addition to what Teemu has said, are you sure that it's the Session timing
out and not the fact that the Forms Authentication Ticket may have expired?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Andrew Chung" wrote:
Hi all,
For an application that I'm working on, upon successful
authentication, Session.Timeout is set to 60 minutes. This behaviour
works as expected on my own machine. If I refresh a page after 40
minutes of inactivity, it remains, but after 61 minutes, it expires
and I am sent back to the login page.
However, once this code is put on the Production server, the sessions
time out after only 20 minutes, even though the code sets it to 60.
What could be causing this? The application is compiled before being
put on Production, in case that matters.
Thanks.
The authentication is done manually, Form Authentication is not used.

Feb 12 '07 #5
On Feb 12, 1:29 pm, "Andrew Chung" <azndragon1...@gmail.comwrote:
On Feb 12, 12:01 pm, Peter Bromberg [C# MVP]

<pbromb...@yahoo.yabbadabbadoo.comwrote:
In addition to what Teemu has said, are you sure that it's the Session timing
out and not the fact that the Forms Authentication Ticket may have expired?
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Andrew Chung" wrote:
Hi all,
For an application that I'm working on, upon successful
authentication, Session.Timeout is set to 60 minutes. This behaviour
works as expected on my own machine. If I refresh a page after 40
minutes of inactivity, it remains, but after 61 minutes, it expires
and I am sent back to the login page.
However, once this code is put on the Production server, the sessions
time out after only 20 minutes, even though the code sets it to 60.
What could be causing this? The application is compiled before being
put on Production, in case that matters.
Thanks.

The authentication is done manually, Form Authentication is not used.
Oops, didn't know there was a delay in postings, thought I lost them.

Feb 12 '07 #6
Do I hear an echo? Then follow Teemu' advice and links carefully.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Andrew Chung" wrote:
On Feb 12, 1:29 pm, "Andrew Chung" <azndragon1...@gmail.comwrote:
On Feb 12, 12:01 pm, Peter Bromberg [C# MVP]

<pbromb...@yahoo.yabbadabbadoo.comwrote:
In addition to what Teemu has said, are you sure that it's the Session timing
out and not the fact that the Forms Authentication Ticket may have expired?
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Andrew Chung" wrote:
Hi all,
For an application that I'm working on, upon successful
authentication, Session.Timeout is set to 60 minutes. This behaviour
works as expected on my own machine. If I refresh a page after 40
minutes of inactivity, it remains, but after 61 minutes, it expires
and I am sent back to the login page.
However, once this code is put on the Production server, the sessions
time out after only 20 minutes, even though the code sets it to 60.
What could be causing this? The application is compiled before being
put on Production, in case that matters.
Thanks.
The authentication is done manually, Form Authentication is not used.

Oops, didn't know there was a delay in postings, thought I lost them.

Feb 12 '07 #7

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

Similar topics

0
by: Gary Petersen | last post by:
I've seen a couple of questions regarding the expiring of sessions in PHP. The way to control how sessions expire is to set some options in php.ini. These options are of particular use:...
1
by: windandwaves | last post by:
Hi Gurus I am basically sorry that I have to bother you about this. I am a PHP beginner and I have been studying sessions and cookies over the last few weeks. I have learned lots, but I am...
13
by: jamie howard | last post by:
Hello there - we have a fairly busy server and we just started to have problems with PHP sessions failing. We've never had this problem before and to be honist, out server traffic is lower than it...
2
by: Jazzis | last post by:
After moving my application from W2K / IIS5 to W2K3 / II6 the application works pefrectly BUT the user session expire prematurely (after about 2 mins) rendering the application unusable. Help /...
15
by: Jazzis | last post by:
I recently moved an application from W2K / IIS5 to W2K3 / IIS6. In the new environment user sessions expire after 2-3 minutes? I can't find any solution to this, although I found quite a few...
1
by: brian | last post by:
I have a webconfig file in my root directory in IIS with session state set for 100 minutes. All login information is stored in session variables for the site. I have a page that is used by our...
1
by: Bogdan Fiedur | last post by:
Hi All, Recently our production server asp.net cache expires on average every 5 seconds. Any clues why is this happening and how to fix it. Bogdan Fiedur
1
by: Dean Richardson | last post by:
Hello, I am having problems with my PHP sessions timing out. I have a system which requires the user to login. Once they login, it then stores their username as a session variable and is checked...
21
by: Lee | last post by:
Hi, I have a very specific problem that perhaps some of the smart people here can figure out. I have a site based on PHP with some Java applets on it. The session variables are being destroyed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.