Hi, Thanks for the quick response. when a user logs on to my web site, he will be prompted to enter his user name and password. after the user enters his name and password, a scan is made in the list of existing names and passwords. if the name already exists, a check will be made to see if he "abadoned" his last useage or if he properly signed out. if he did not propely sign out all his usage records are fetched and the duration of his usage is determined, then he is properly signed out and signed in for the new session. therefore no user can have more than one session going on with his password. My problem is that i intend to allow people to sign up and test the site, therefore it is possible that when a new user is signing up, a scan is being made to check if another persons exists. what happens if this two processes happen at the exact same time, furthermore, can update of records in a text file be done inside application.lock and application.unlock
|