This is for Pylons, not Pyramid - I wrote a login system and session information is stored using beaker.
I also wrote a password recovery method. When the user resets his password, I'd like to invalidate / delete all session associated with the user so that the other machines the user is logged in on are kicked off when the go to another page. My questions: * is there a way to search beaker sessions in aggregate? In this case I'd like to search all sessions for a specific user id and delete the matches. * From what I see, I could specify a cache region = user id when the session is created and first saved... and then delete the region when the password recovery occurs. Is this a correct usage of the cache region construct? * am I missing a better solution? Thank you for the thoughts. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
