Welcome Guest, Not a member yet? Register   Sign In
How to awoid admin collision in CMS?
#5

[eluser]Flemming[/eluser]
here's a really simple suggestion just right off the top of my head (usually the worst type!)

admin number 1 logs in and he/she gets their user_id set into their userdata_session

admin number 2 logs in and same thing - userdata gets set.

admin number 1 goes to /your_controller/method that you DONT want 2 people to access at once, so

record gets written to DB with admin user_id and timestamp. every time they do any action within this controller the timestamp gets updated

admin number 2 goes to /your_controller/method that you DONT want 2 people to access at once, so

you check the DB and if the timestamp there is more than n minutes old they're allowed to access that controller. If the timestamp is less than n minutes old AND admin number 2 is NOT the owner of that DB record, you popup a lightbox/fancybox message to tell them the admin for this section is currently being used by someone else, please try again in n minutes.

I guess it's very similar to what WanWizard was proposing!


Messages In This Thread
How to awoid admin collision in CMS? - by El Forum - 06-15-2010, 09:04 AM
How to awoid admin collision in CMS? - by El Forum - 06-15-2010, 10:07 AM
How to awoid admin collision in CMS? - by El Forum - 06-15-2010, 11:10 AM
How to awoid admin collision in CMS? - by El Forum - 06-16-2010, 07:00 AM
How to awoid admin collision in CMS? - by El Forum - 06-16-2010, 07:21 AM
How to awoid admin collision in CMS? - by El Forum - 06-16-2010, 08:26 AM
How to awoid admin collision in CMS? - by El Forum - 06-17-2010, 03:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB