473,804 Members | 3,194 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What factor determine a session to end?

Hi there,

Just wonder what factor actually determine a session to end?

What happen a user close the browser or switch to other website? Does the
session end immediately or 20 minutes later? (20 minutes defined in
Web.config)

Thanks,
Kian

Nov 17 '05 #1
2 3342
20 minutes later.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"Kian Goh" <ki************ @hotmail.com> wrote in message
news:OG******** *****@TK2MSFTNG P11.phx.gbl...
Hi there,

Just wonder what factor actually determine a session to end?

What happen a user close the browser or switch to other website? Does the
session end immediately or 20 minutes later? (20 minutes defined in
Web.config)

Thanks,
Kian

Nov 17 '05 #2
The session will time out after 20 minutes of no page requests from the
user.
This default time interval is configurable in your web.config file.
After the session times out the Session_End event will be called in your
Global.asax file.
You can terminate the session manually by calling Session.Abandon , but be
aware this will cause the Session_End event to not be called. But that's
not so bad. Just take your code from the Session_End event, put it in a
separate function, then call that function from both your Session_End event
and whenever you call Session.Abandon .

Here's more details for you:
http://www.asp.net/Forums/ShowPost.a...=1&PostID=7504

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Kian Goh" <ki************ @hotmail.com> wrote in message
news:OG******** *****@TK2MSFTNG P11.phx.gbl...
Hi there,

Just wonder what factor actually determine a session to end?

What happen a user close the browser or switch to other website? Does the
session end immediately or 20 minutes later? (20 minutes defined in
Web.config)

Thanks,
Kian

Nov 17 '05 #3

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

Similar topics

0
6818
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what the issue is. Thanks Ravi
0
1702
by: Keith | last post by:
First I would question why you want to do this. If they get to the page by any means it should respond appropriately, whether refresh or by link. This is a stateless environment after all. That being said... I would take the approach of setting a session variable that gets set the first time they hit the page:
4
5281
by: Gary Davis | last post by:
Once a day or so, I receive an error on a fairly active website that calls this StrMixed.cs method constructor. 99% of the time there is no exception: System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.InvalidOperationException: Hashtable insert failed. Load factor too high. at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
3
5300
by: David | last post by:
Hi, I write asp.net via c#. How should I know the client's session alive? 1. if ( Session.Equals ( null ) ) 2. if ( Convert.IsDBNull(Session) ) 3. if ( Session.Contents.Count == 0 ) Thanks for your kind advice, David.
2
3679
by: Martin Høst Normark | last post by:
Hi everyone Has anyone got the least experience in integrating the Digital Signature with an ASP.NET Web Application? Here in Denmark, as I supose in many other countries, they're promoting the digital signature. A lot of people already has one, to do their taxes, and much more. I have to use for a business-to-business e-commerce solution, where it's vital that the right user is being logged on, and not give his username and password...
3
1690
by: Rod | last post by:
In Dino Esposito's book, "Programming Microsoft ASP.NET", there is a chapter titled, "ASP.NET State Management". There is a section in there discussing session state sometimes going away. He mentions that in version 1.1 of ASP.NET, that it isn't possible for the application to know about the session expiring. He gives a work around which you can try using that is put into the Session_Start event, which would first determine if there...
3
2604
by: Shapper | last post by:
Hello, How to determine if a Session Variable exists? In Page_Load I need to check is Session("MyVar") Exists. If it doesn't exist then I created it and give it a value: Session("myVar") = "Value" Thanks, Miguel
0
1042
by: Brett Smith | last post by:
I have a winforms app that access a web resource using forms authentication. I programatically login to the site, and catch the cookies. I then pass the cookies to my httpwebrequest. I neet to know how to tell when the cookie has expired so that I can have the app login again. The other issue is session timeout. the web resource is Exchange Outlook Web Access. It will time an inactive session out. how do I determine if my session has...
5
1908
by: Benedictum | last post by:
I need to implement an option to display on the web page for users currently logged in. How do I implement this in ASP.NET (c#). I could probably have a boolean field in the database where a user can be set as logged. This can easily be done in the code-behind. The problem is how do I "unlogged" the user when the session is timed out?
0
9706
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
10578
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
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
10321
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
9152
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5522
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...
1
4300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2991
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.