On Mon, Nov 17, 2008 at 2:37 PM, AndrewStone <[EMAIL PROTECTED]> wrote:
>
> Is there any way to limit the number of simultaneous sessions
> (preferably by priviledge).  For example I only want one "admin" to be
> able to log on at a time so that 2 users' changes do not conflict.
>
the proper way of handling this is for your app to be thread safe & db
safe, sqlalchemy should take care of most of this. if you have "long
lasting user sessions" a solution for this is to add a timestamp field
named last_modified to the table in question and check that before
each save, giving back the user an error, asking him to refresh the
page (hence load the new data).

> It seems like a common request, but I've been doing a lot of searching
> on this list and in the web in general and haven't come up with any
> hits!
>
> Thanks for any help,
> Andrew
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to