473,387 Members | 1,766 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.

session_end question

hello there,
I want to find out if I close a browser, does that end a
session? I want to use a session variable to track the
number of user of my site, so I add 1 to a session
variable when the "session_start", and minus 1
when "session_end".
The session_start is fine, but the session_end never kick
in.

Thanks in advance.
Vincent.
Jul 21 '05 #1
2 1168
If you close the browser the session_end will be called when the session
times out. This is normally set in the IIS IDE.
"Vincent" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
hello there,
I want to find out if I close a browser, does that end a
session? I want to use a session variable to track the
number of user of my site, so I add 1 to a session
variable when the "session_start", and minus 1
when "session_end".
The session_start is fine, but the session_end never kick
in.

Thanks in advance.
Vincent.

Jul 21 '05 #2
So even the browser is closed, the session doesn't time
out. It will wait until the time out that set in IIS.
Am I correct?
-----Original Message-----
If you close the browser the session_end will be called when the sessiontimes out. This is normally set in the IIS IDE.
"Vincent" <an*******@discussions.microsoft.com> wrote in messagenews:04****************************@phx.gbl...
hello there,
I want to find out if I close a browser, does that end a session? I want to use a session variable to track the
number of user of my site, so I add 1 to a session
variable when the "session_start", and minus 1
when "session_end".
The session_start is fine, but the session_end never kick in.

Thanks in advance.
Vincent.

.

Jul 21 '05 #3

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

Similar topics

2
by: Chris Sibel | last post by:
Hey guys I have a user tracking setup to track users. What it does is once a user hits my site it sends me an email telling me some info and once a user clicks the logout button it sends a second...
8
by: karahan celikel | last post by:
I realized that when SqlServer mode is used for session management Session_End event is not fired in global.asax. What can I do if I want to do something when a user's session end? Thanks
1
by: Samuel Stanojevic | last post by:
- I'm using .NET Framework 1.1. I just noticed that whenever I change the value of Session.Timeout (no matter which aspx page this happens on), at the end of the request, the 'Session_End'...
3
by: Guadala Harry | last post by:
Just wondering if Session_End *always fires* for every Session. I know that IIS times out sessions after a default 20 min (unless changed) and there's no way to know when a user actually closed a...
4
by: news.microsoft.com | last post by:
For some odd reason, session start fires but session_end does not. I am running the web server inproc, the web.config is configured as: <sessionState mode="InProc"...
8
by: howard39 | last post by:
When SQL Server 2003 is *not* configured in IIS5 isolation mode, is it true that the Session_End event can not be depended on? If so, what is a good way to clean up unmanaged resources that were...
7
by: Henry | last post by:
I have a question on session_end. I'm trying to log into my database when the session times out, it will store user info into a table. When I got step into a line where I was trying to open...
2
by: James Hunter Ross | last post by:
Friends, In our Global.asax file we implement Session_End() which grabs our own object and then calls our own logout() method to tidy things up. Code is below. (We wrap this in try/catch, but...
12
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I am trying to maintain a list of people who are currently "online" in SQL. I do this by adding a simple entry to a simple PeopleOnline table whenever someone logs in to my site. If they...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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.