#1153 Wisp session data in db

kaushik Tue 20 Jul 2010

Does wisp provide a hook for the session to be serialized to db (or memchaced or redis)? This is useful in 2 places

a) In production mode, I could run multiple instances of wisp for scalability so the request could go to any of the server without loss of session b) In development mode, this could be a useful addition when I auto-restart wisp for a code change as mentioned by brian in `http://fantom.org/sidewalk/topic/1119` , so I don't have to loose my session after i restart wisp

brian Tue 20 Jul 2010

Promoted to ticket #1153 and assigned to brian

Doesn't look like there is a clean hook for that, but I should be able to add it pretty easily.

brian Tue 9 Nov 2010

I have added a new WispSessionStore mixin to the wisp pod.

You can create your own custom implementations, then configure via WispService.sessionStore field.


Sorry it took so long to get this knocked out.

If anyone has implemented alternate web APIs, then this might be a breaking change:

  • WebSession.id is abstract method instead of field
  • WebSession.map is abstract method instead of field
  • WebSession is no longer serializable itself

brian Tue 9 Nov 2010

Ticket resolved in 1.0.56

kaushik Wed 10 Nov 2010

Thank you brian! This is great!

Login or Signup to reply.