Are there any concerns I should have about storing a Python Lock object in a Beaker session?

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-05-08T16:44:28Z Indexed on 2010/05/08 16:48 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

There is a certain page on my website where I want to prevent the same user from visiting it twice in a row. To prevent this, I plan to create a Lock object (from Python's threading library). However, I would need to store that across sessions. Is there anything I should watch out for when trying to store a Lock object in a session (specifically a Beaker session)?

© Stack Overflow or respective owner

Related posts about python

Related posts about pylons