473,383 Members | 1,759 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,383 software developers and data experts.

session not being killed after user closes browser

Hi,
I'm using session cookies on my web app and it looks like the session is not
being killed when the user closes the browser. We use a Global.asa file on
our app. Do we have to explicitly write to close the session or does it get
killed when the user is closes their browser?

Please advise.
rafael
Jul 19 '05 #1
4 4180
Rafael Chemtob wrote:
Hi,
I'm using session cookies on my web app and it looks like the session
is not being killed when the user closes the browser. We use a
Global.asa file on our app. Do we have to explicitly write to close
the session or does it get killed when the user is closes their
browser?

Please advise.
rafael


The server does not "know" when a user closes his browser, so it cannot kill
a session when that occurs. there are only two situations where the server
will kill a session:

1. A page issues a Session.Abandon command
2. The session times out

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #2
hi,
is there a possibility of doing this on unload event of window, use
session.abandon method?
thanks,

--
««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> escreveu na mensagem
news:#R**************@tk2msftngp13.phx.gbl...
Rafael Chemtob wrote:
Hi,
I'm using session cookies on my web app and it looks like the session
is not being killed when the user closes the browser. We use a
Global.asa file on our app. Do we have to explicitly write to close
the session or does it get killed when the user is closes their
browser?

Please advise.
rafael
The server does not "know" when a user closes his browser, so it cannot

kill a session when that occurs. there are only two situations where the server
will kill a session:

1. A page issues a Session.Abandon command
2. The session times out

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 19 '05 #3
You would have to perform a request to the server from the unload event.
session.abandon is a server-side scripting function.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Vilmar Brazão de Oliveira" <te***@teste.teste.teste> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
hi,
is there a possibility of doing this on unload event of window, use
session.abandon method?
thanks,

--
««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> escreveu na mensagem
news:#R**************@tk2msftngp13.phx.gbl...
Rafael Chemtob wrote:
Hi,
I'm using session cookies on my web app and it looks like the session
is not being killed when the user closes the browser. We use a
Global.asa file on our app. Do we have to explicitly write to close
the session or does it get killed when the user is closes their
browser?

Please advise.
rafael


The server does not "know" when a user closes his browser, so it cannot

kill
a session when that occurs. there are only two situations where the server will kill a session:

1. A page issues a Session.Abandon command
2. The session times out

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Jul 19 '05 #4
ok, but send me a sample of that running.
thanks

--

Sem mais,

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Mark Schupp" <ms*****@ielearning.com> escreveu na mensagem
news:eP**************@TK2MSFTNGP10.phx.gbl...
You would have to perform a request to the server from the unload event.
session.abandon is a server-side scripting function.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Vilmar Brazão de Oliveira" <te***@teste.teste.teste> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
hi,
is there a possibility of doing this on unload event of window, use
session.abandon method?
thanks,

--
««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> escreveu na mensagem
news:#R**************@tk2msftngp13.phx.gbl...
Rafael Chemtob wrote:
> Hi,
> I'm using session cookies on my web app and it looks like the session > is not being killed when the user closes the browser. We use a
> Global.asa file on our app. Do we have to explicitly write to close
> the session or does it get killed when the user is closes their
> browser?
>
> Please advise.
> rafael

The server does not "know" when a user closes his browser, so it
cannot
kill
a session when that occurs. there are only two situations where the

server will kill a session:

1. A page issues a Session.Abandon command
2. The session times out

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Jul 19 '05 #5

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

Similar topics

6
by: Jeff | last post by:
I've searched the web for hours trying to figure out this problem and can't seem to find any pertinent answers. I have a website where the user starts on a login page, puts in their credentials and...
9
by: Pack Fan | last post by:
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
11
by: David Lozzi | last post by:
Hello All, I am having an issue with thus far one computer on my client's web site. If the user loads the shopping cart and then closes all browser windows, then opens them back up, goes back to...
4
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
5
by: news.microsoft.com | last post by:
Hi everyone, I need some help (may be in the form of some sample code) for the subject question. I have an ASP.NET/C# application. I need to do quite a few tasks when the session ends. I...
6
by: Doug | last post by:
I'm about to go nuts. I've got a VB.NET web app , utilizing frames(my 1st mistake). One of the frames is hidden and does a behind the scenes refresh, to keep the session alive. This works great...
5
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know...
5
by: bgold12 | last post by:
When a user logs onto my site, I set some session data using php: .... session_start(); .... $_SESSION = 'value'; .... From what I understand, this should store the session data (i.e. the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.