Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I detect different application exits

Status
Not open for further replies.

BigM

Programmer
Aug 30, 2000
39
GB
Hi,

I have an app in which the user can upload and amend a configuration file. This file is just a flat ASCII file. To prevent more than one user editing this at once the app checks for the existence of this file on the Webserver...if its there then its being edited and no further access to this part of the app required.

My problem is removing this file if the user exits the app through any other means than clicking the 'Save' or 'Undo' buttons...ie closes the window, clicks another link in the menu, enters a new url.

I have looked at the unLoad option and redirecting to an asp script to do the file deletion but how would i detect an unload caused by the entering of a new url and subsequently redirect to the entered url.

Sorry for the length of this submission I have tried to be as concise as poss....but its a big problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top