Put a lock on file
<p>i access some files kept on server using my application. Multiple users can login into the application, i want to put some explicit lock on files that is opened by 1 of the user and want to release the lock when user either logs out or stop using the file.</p>

<p>Any help how to do it?</p>

<p>Thanks in advance</p>
