Hello everyone, I'm not sure if it is the right place to ask this question but trac at http://beaker.groovie.org/ seems to be virgin.
Long story short. There is need for some API to enumerate all Beaker sessions. Sessions are very useful when one needs to transform stateless HTTP protocol into something more or less statefull. The only missing part of what Beaker session API provides is ability to enumerate all sessions. Here is an use-case. Suppose session is used to store some information that is loaded by rather slow database query and that data is not changed too often to keep loading it from database on every request. All works fine until that information is changed in database and it is quite critical for application to react to that change immediately. It would be great to be able to walk through all sessions and invalidate/ expire some part of or whole session. Of course, there are few ways to do that without any changes to Beaker. One of them would be using global variable that triggers session invalidation. Another dirty trick would be to use current Beaker implementation details. But all that don't smell good. I'd be glad to help with implementing such a feature although I don't know Beaker's code that well to suggest some patch right away. Best regards Alexander --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
