N
nrocha
Hello,
I've been trying to detect when a user closes a page or navigates away
from it. This is part of a solution for locking pages (that is, if a
user enters a page, no one else can enter it while he doesn't leave).
I'm using the window.onunload event to trigger the unlocking of a
page, but I don't want the page to be unlocked when a postback or a
refresh occurs...I only want it when the user goes to another page or
closes the browser/tab...
Is it possible to achieve this behaviour??
Side note: I'm using ASP.NET 2.0 in the server side.
Regards,
Nuno
I've been trying to detect when a user closes a page or navigates away
from it. This is part of a solution for locking pages (that is, if a
user enters a page, no one else can enter it while he doesn't leave).
I'm using the window.onunload event to trigger the unlocking of a
page, but I don't want the page to be unlocked when a postback or a
refresh occurs...I only want it when the user goes to another page or
closes the browser/tab...
Is it possible to achieve this behaviour??
Side note: I'm using ASP.NET 2.0 in the server side.
Regards,
Nuno