javascript - Limit user to access one data at a time -


i need suggestion on how implement condition: have system there admins can edit student/user profiles, problem have multiple admins editing profiles dont want happen 2 or more admins editing 1 specific profile @ same time. familiar javascript , little in jquery , ajax.

my current solution in has flaws , limit condition is, whenever admin clicks profile trigger status database update column currently_open profile "yes" other admins cant open same profile anymore , admin editing profile, way trigger status of user click save or submit button update database column currently_open "no".

well problem of method whenever browser closed, refreshed, session time out or connection lost. status remain open , last admin editing profile wont able access anymore.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -