422,024 Members | 1,034 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,024 IT Pros & Developers. It's quick & easy.

ASP.NET Session TimeOut problem

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.