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.
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.