Is there any way to lock a file until a browser is closed, the user leaves the current page, or their session expires?
I have a java app that reads annotations from a text file and lets a user modify or add more annotations to a pdf through the java app. Once they do, they click 'save' and the full annotation file is returned to it's original data file.
The issue is that 2 people can open the same annotation file and perform different updates. Then, when each saves, they overwrite the existing file so that only the 2nd user's changes are saved.
The ideal solution is to let 1 person 'check-out' the file for edit, make their modifications until either they close the window, navigate away from the page, or their session expires, then the file would automatically 'check-in'. Any way of doing this in C#? Thanks!