473,466 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Open a window upon closing another

Hello,

I have a system whereby I'd like users to log off, however, some people
simply close the window.

Can anyone tell me how to call my 'log off' page when the main window is
closed?

Much appreciated for any help or ideas,

Gram
Jul 23 '05 #1
3 1032
On Fri, 24 Sep 2004 14:22:36 +0100, Gram <gr******@hotmail.com> wrote:
I have a system whereby I'd like users to log off, however, some people
simply close the window.

Can anyone tell me how to call my 'log off' page when the main window is
closed?


Please read the FAQ. <URL:http://jibbering.com/faq/>

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2
In article <vc*******************@news.indigo.ie>,
Gram <gr******@hotmail.com> wrote:
I have a system whereby I'd like users to log off, however, some people
simply close the window. Much appreciated for any help or ideas,


You can use the onunload event. There are limits to what you can do in
the onunload event. You will not be able to invoke a new page unless you
have a real old browser. I remember back when I was trying to quite
this game site and it put up two pages whenever I quite a page!!! I
ended up re-booting.

You can ask in a server forum about detecting dropped clients. Mabye you
can set a timer or detect when a session goes away.

Rober
Jul 23 '05 #3
Robert wrote:
Gram <gr******@hotmail.com> wrote:
I have a system whereby I'd like users to log off, however, some people
simply close the window.

Much appreciated for any help or ideas,
You can use the onunload event. There are limits to what you can do in
the onunload event.


There are limits using the `onunload' event handler itself, particularly
not present, disabled or restricted support for client-side scripting or
not supporting the "unload" event at all; using `onunload' is a bad idea.
You can ask in a server forum about detecting dropped clients. Mabye you
can set a timer or detect when a session goes away.


Users need to log off. If they don't the session expires since the new
session ID will not match an existing session.
PointedEars
--
Error found: user is a complete idiot!
Jul 23 '05 #4

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

Similar topics

2
by: Cheryl | last post by:
Hi, I have encounter a problem.Language use is C#. I would like to open a new window (is a modal window, where I m not able to switch from parent window after this window is open)from the parent...
3
by: Srik | last post by:
I am working on a project where in we have a requirement in which we need to open a new window on click of a link and also I should display a link in the new opened window after the data is...
4
by: Csaba Gabor | last post by:
Up until a few weeks ago, javascript code like window.open("http://mydomain.com", "windowName"); would always bring my new or reused window to the top, with focus. Lately, Firefox (Deer park...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
1
by: sandeepk84 | last post by:
hi all... is there any way to open a new aspx page from another without closing the existing one? means, i have some controls in the first page and i need them to b there after doing some...
2
by: Luqman | last post by:
How can I open another WebForm in ASP.Net / VS 2005 without closing the Current Webform. I tried using Server.Transfer("Form2.Aspx",True) on Button_Click of Form1 but it close the current web...
5
by: Ruben | last post by:
Hello, I am using the "Application.FollowHyperlink strFilePath, , True" line of code from within access forms to launch any file type I want (e.g., xls, doc, pdf, etc.). The files open up okay,...
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
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
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.