473,418 Members | 2,052 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,418 software developers and data experts.

ASP.NET Session TimeOut problem

Hi,
I am facing a problem of automatic session timeout problem and
automatic session_end event fired.
Case1: As I have analyzed I get to know that the default session
timeout is 20 in web.config, If I reassign the session timeout at
login page other than the time which is defined at web.config(20 Min.)
then automatic session_end (in global.aspx.cs) event fired.
Why automatic this event is fired??
Case2: If I remove session timeout from Web.config, Machine.config ,
IIS (Enabled Session outTime) , then by default it takes 20 Min. , If I

Reassign at loginPage the session timeout rather than 20 min. , then
Session_End event fired.
From where it taking 20Min. default and why Automatic session_end event

calling??

Nov 19 '05 #1
2 9665
The default is 20 minutes being set in the machine config file overridable
in the web config file. For your session end event, have a look at this
article: http://support.microsoft.com/default...b;en-us;555082

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

<Ra***********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi,
I am facing a problem of automatic session timeout problem and
automatic session_end event fired.
Case1: As I have analyzed I get to know that the default session
timeout is 20 in web.config, If I reassign the session timeout at
login page other than the time which is defined at web.config(20 Min.)
then automatic session_end (in global.aspx.cs) event fired.
Why automatic this event is fired??
Case2: If I remove session timeout from Web.config, Machine.config ,
IIS (Enabled Session outTime) , then by default it takes 20 Min. , If I

Reassign at loginPage the session timeout rather than 20 min. , then
Session_End event fired.
From where it taking 20Min. default and why Automatic session_end event

calling??

Nov 19 '05 #2
this is a bug, if you try to set the timeout, anywhere other than
session_start, it kills the session

"Ra***********@gmail.com" wrote:
Hi,
I am facing a problem of automatic session timeout problem and
automatic session_end event fired.
Case1: As I have analyzed I get to know that the default session
timeout is 20 in web.config, If I reassign the session timeout at
login page other than the time which is defined at web.config(20 Min.)
then automatic session_end (in global.aspx.cs) event fired.
Why automatic this event is fired??
Case2: If I remove session timeout from Web.config, Machine.config ,
IIS (Enabled Session outTime) , then by default it takes 20 Min. , If I

Reassign at loginPage the session timeout rather than 20 min. , then
Session_End event fired.
From where it taking 20Min. default and why Automatic session_end event

calling??

Nov 19 '05 #3

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

Similar topics

4
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...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
5
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...
8
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...
17
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...
2
by: Tomas Martinez | last post by:
Hi, Well, my problem is so simple as it says in the subjet but very frustrating also. I have a project and it is losing the session variables with each postback, so I downloaded from the web a...
2
by: Orgil | last post by:
I'm using ASP 3.0 however there is ASP.NET, because I'm working an old site that is built in ASP 3.0. I hope you for getting any help for my problem from you. So, my site's sessions are empty...
4
by: thig95 | last post by:
Hi, I've got a web application written in ASP class with VBScript. We have a home grown conctact management system for my company that our users stay active in throughout the day. My problem lies...
6
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...
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
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...
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.