My development environment is Framework 1.1, ASP.Net and IE 6.X.
I have logout button in all the screens in the application. I am doing
database activity when the user clicks on logout button. However the user
can close the application using the IE close cross mark. When the user
closes the application without logout button all my database routine and
logout activities will not be called. Any solution for this kind of
situation? Thanks for your thoughts.
Harry 20 2047
"Harry" <Ha************ @hotmail.com> wrote in news:#LVbPOUiEH A.1040
@TK2MSFTNGP09.p hx.gbl: Any solution for this kind of situation?
Look at the Global.asax file. There are several event handlers you can
use... such as On Session End. On session end is executed when the session
times out - generally 20 minutes.
--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
If you are using session state, in the session_end event, call the log out
routine for the current user.
"Harry" <Ha************ @hotmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. My development environment is Framework 1.1, ASP.Net and IE 6.X.
I have logout button in all the screens in the application. I am doing database activity when the user clicks on logout button. However the user can close the application using the IE close cross mark. When the user closes the application without logout button all my database routine and logout activities will not be called. Any solution for this kind of situation? Thanks for your thoughts.
Harry
> "Harry" <Ha************ @hotmail.com> wrote in news:#LVbPOUiEH A.1040 @TK2MSFTNGP09.p hx.gbl:
Any solution for this kind of situation? Look at the Global.asax file. There are several event handlers you can use... such as On Session End. On session end is executed when the
session times out - generally 20 minutes.
In ASP classic, the session onend event was very unreliable. Is this not
the case in .NET? Thanks -- Lucas Tam (RE********@rog ers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
It's just that it may not fire till the session times out if the user used
the"X" as the OP indicated. Still the same issue(s) but it's still about
your only real way of doing it.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
<St************ *@IDX.COM> wrote in message
news:O8******** ******@tk2msftn gp13.phx.gbl... "Harry" <Ha************ @hotmail.com> wrote in news:#LVbPOUiEH A.1040 @TK2MSFTNGP09.p hx.gbl:
> Any solution for this kind of > situation?
Look at the Global.asax file. There are several event handlers you can use... such as On Session End. On session end is executed when the
session times out - generally 20 minutes.
In ASP classic, the session onend event was very unreliable. Is this not the case in .NET? Thanks -- Lucas Tam (RE********@rog ers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
> In ASP classic, the session onend event was very unreliable. Is this not the case in .NET? Thanks
Define "unreliable ."
Sessions in ASP would time out after an interval of inactivity (no requests
from browser). ASP.Net behaves the same way. But you could and can always be
certain of one thing: Sessions end. When they end, the Session_End Event
Handler is called. Is that reliable enough for you?
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
<St************ *@IDX.COM> wrote in message
news:O8******** ******@tk2msftn gp13.phx.gbl... "Harry" <Ha************ @hotmail.com> wrote in news:#LVbPOUiEH A.1040 @TK2MSFTNGP09.p hx.gbl:
Any solution for this kind of situation?
Look at the Global.asax file. There are several event handlers you can use... such as On Session End. On session end is executed when the
session times out - generally 20 minutes.
In ASP classic, the session onend event was very unreliable. Is this not the case in .NET? Thanks -- Lucas Tam (RE********@rog ers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
when the user closes the IE by clicking the X mark on the title bar,
Session_End routine is not getting triggered.
Am I doing something wrong?
Harry
"Marina" <so*****@nospam .com> wrote in message
news:OI******** *****@TK2MSFTNG P12.phx.gbl... If you are using session state, in the session_end event, call the log out routine for the current user.
"Harry" <Ha************ @hotmail.com> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. My development environment is Framework 1.1, ASP.Net and IE 6.X.
I have logout button in all the screens in the application. I am doing database activity when the user clicks on logout button. However the
user can close the application using the IE close cross mark. When the user closes the application without logout button all my database routine and logout activities will not be called. Any solution for this kind of situation? Thanks for your thoughts.
Harry
No. That will get triggered when the session times out due to inactivity.
That setting is in web.config.
"Harry" <Ha************ @hotmail.com> wrote in message
news:ey******** ******@TK2MSFTN GP10.phx.gbl... when the user closes the IE by clicking the X mark on the title bar, Session_End routine is not getting triggered. Am I doing something wrong? Harry
"Marina" <so*****@nospam .com> wrote in message news:OI******** *****@TK2MSFTNG P12.phx.gbl... If you are using session state, in the session_end event, call the log
out routine for the current user.
"Harry" <Ha************ @hotmail.com> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. My development environment is Framework 1.1, ASP.Net and IE 6.X.
I have logout button in all the screens in the application. I am doing database activity when the user clicks on logout button. However the user can close the application using the IE close cross mark. When the user closes the application without logout button all my database routine
and logout activities will not be called. Any solution for this kind of situation? Thanks for your thoughts.
Harry
so what is the conclusion? Is there any I can handle it?
Harry
"Marina" <so*****@nospam .com> wrote in message
news:uX******** ******@tk2msftn gp13.phx.gbl... No. That will get triggered when the session times out due to inactivity. That setting is in web.config.
"Harry" <Ha************ @hotmail.com> wrote in message news:ey******** ******@TK2MSFTN GP10.phx.gbl... when the user closes the IE by clicking the X mark on the title bar, Session_End routine is not getting triggered. Am I doing something wrong? Harry
"Marina" <so*****@nospam .com> wrote in message news:OI******** *****@TK2MSFTNG P12.phx.gbl... If you are using session state, in the session_end event, call the log out routine for the current user.
"Harry" <Ha************ @hotmail.com> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. > My development environment is Framework 1.1, ASP.Net and IE 6.X. > > I have logout button in all the screens in the application. I am
doing > database activity when the user clicks on logout button. However the user > can close the application using the IE close cross mark. When the
user > closes the application without logout button all my database routine and > logout activities will not be called. Any solution for this kind of > situation? Thanks for your thoughts. > > Harry > >
The conclusion is that you can handle it, but only when the session times
out. There is no way the server can know what the user does on their
computer as far as which IE windows are kept open, and which are closed
suddenly. All the server can know is the last time a request was made from a
client with a particular session id. And when the client hasn't made a
request for some amt of time, it can kill the session and raise the
session_end event.
"Harry" <Ha************ @hotmail.com> wrote in message
news:uA******** ******@TK2MSFTN GP10.phx.gbl... so what is the conclusion? Is there any I can handle it? Harry
"Marina" <so*****@nospam .com> wrote in message news:uX******** ******@tk2msftn gp13.phx.gbl... No. That will get triggered when the session times out due to
inactivity. That setting is in web.config.
"Harry" <Ha************ @hotmail.com> wrote in message news:ey******** ******@TK2MSFTN GP10.phx.gbl... when the user closes the IE by clicking the X mark on the title bar, Session_End routine is not getting triggered. Am I doing something wrong? Harry
"Marina" <so*****@nospam .com> wrote in message news:OI******** *****@TK2MSFTNG P12.phx.gbl... > If you are using session state, in the session_end event, call the
log out > routine for the current user. > > "Harry" <Ha************ @hotmail.com> wrote in message > news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. > > My development environment is Framework 1.1, ASP.Net and IE 6.X. > > > > I have logout button in all the screens in the application. I am doing > > database activity when the user clicks on logout button. However
the user > > can close the application using the IE close cross mark. When the
user > > closes the application without logout button all my database
routine and > > logout activities will not be called. Any solution for this kind
of > > situation? Thanks for your thoughts. > > > > Harry > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Al Fraser |
last post by:
Hope someone can help.
My situation is this:
I have x number of ASPs that form a 'sales process'. What I want to be
able to do is detect when the user has left our 'sales process' (so I
can fire off a pop-up), irresepective of the ASP theyve left, either
by browser close or by typing in a new URL. What I dont want is the
user going through the 'sales process' and getting loads of windows of
the same pop-up, say e.g. by using the Form...
|
by: ho0c1355 |
last post by:
Hi,
I was wondering anyone can help me? I am looking for a javascript
that can do such a thing? If the Mouse and keyboard sit and do nothing
for 5 to 10 minutes. The Internet Browser will close and return to the
PC desktop.
Thanks,
Chris
|
by: Champika Nirosh |
last post by:
Hi All,
I have a asp .net app and it is a online test application so tracking the
user behaviour is very important. The problem is in what way I can identify
the user logoff time if it happens to loggoff due to a browser crash.
Nirosh.
|
by: Denon |
last post by:
How to trap browser close event in SERVER side?
I read a lot of forum message, it talk about onclose(), onunload() and even
onbeforeunload() event. However, all of theses are based on javascript
written on the client browser , like IE. To send a POST to web server to
acknowledge its close event.
However, I just think, web server and client browser is a TCP connection.
And if the client browser is close and it imply the TCP socket is...
|
by: Sunil Sabir |
last post by:
Dear All,
I have a Main Asp.Net page . In that Page I have a Tab Strip which has
SIX tabs each representing a different web Forms.So that when a user
clicks different tab he can navigate between different forms.In my Main
Page I have written a javascript code
function ConfirmClose() {
confirm("Are you Sure You Want to Close This Main Window?") ;
| |
by: Lord2702 |
last post by:
Sat. Oct. 30, 2004 3:25 PM PT
I want to detect, if user has close the browser, (after logging to my site),
that user has closed the browser. How to achieve it ? I want to know this
close action on my server-side code. Because if he logout by clicking on
Logout/ Sign-Off button it simple to get the message.
Although, this is very similar to the first above. Also, if user takes any
action on client-side or browser side how will I detect...
|
by: mammen |
last post by:
Hello,
I'm writing trace log of various actions happening in my ASP.NET web
application by opening a text file when the user logs in to the system and
closing the file while the user logs out. This is especially to nail a
hangout issue.
The problem I'm facing is, when the application hangs and the user closes
the browser using close(X) button I'm not able to close the text
file(handle). This keeps the file handle open and the contents...
|
by: bloodandrose |
last post by:
Can you help me How to detect browser close event?
Thanks
|
by: sreedhardasi |
last post by:
Hi,
I would like to call a javascript function when user clicks on
browser's close button. Here is the scenario.
1. User clicks browser close button.
2. User will be displayed a popup or a div with two buttons (Yes or
No) by calling a Javascript function
3. "No" will close the window.
4. "Yes" will cancel the user action and redirect him/her to different
|
by: rehanrana |
last post by:
I built application in VB6, my application appear in system tray, when I double click on icon of my application, it run screen saver, my screen saver shows images and news. Screen saver functionality is that when user press F2 key, my screen saver open news detail in browser.
But the problem is that when screen saver stop (close), browser also close with the screen saver.
following line i use to start screen saver
lRet =...
|
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...
| |
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...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |