#88 Allow custom subclasses of SessionStore and Session

closed-accepted
WebKit (58)
5
2007-04-05
2007-04-04
Ben Parker
No

Relevant to a recent webware-devel post: I needed to subclass SessionStore and Session to implement a MySQL-backed custom session store for an app clustered on many appservers.

Attached is a backwards-compatible patch to Application.py which allows four new optional config settings:

SessionStoreModule
SessionStoreClass
SessionModule
SessionClass

If either of those pairs are present, the specified class is imported from the specified module in the same mechanism as SessionXxxStore is imported in the current code.

Discussion

  • Ben Parker
    Ben Parker
    2007-04-04

    patch to allow new SessionStore and Session class config

     
    Attachments
    • assigned_to: nobody --> cito
    • status: open --> closed-accepted
     
  • Logged In: YES
    user_id=193957
    Originator: NO

    Thanks. A similar patch using less configuration settings has been checked in to the trunk in r6407.