Preventing more than one user from accessing
Posted: Tue Oct 11, 2005 8:21 pm
I have a section on a site I am developing that I only want one user to access at a time. I have used lock files before with pages that
the user can not access, and they have worked fine. However in this situation, lock files will not work because if the user hits stop then
the page will stop loading, and the lock will stay.
I could fix this, if PHP had a finalize function like java does, but I don't think that it does.
Does anyone have any ideas on how I can prevent more than one user from accessing a file? Or even an alternative to the finalize method?
the user can not access, and they have worked fine. However in this situation, lock files will not work because if the user hits stop then
the page will stop loading, and the lock will stay.
I could fix this, if PHP had a finalize function like java does, but I don't think that it does.
Does anyone have any ideas on how I can prevent more than one user from accessing a file? Or even an alternative to the finalize method?