By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

Open a window upon closing another

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.