On Wed, 24 Oct 2012 12:56:39 +0200, Sönke Ludwig wrote:

Am 10/24/2012 1:20 PM, schrieb biozic:

I'm trying to subclass SessionStore to use MongoDB as a backend for
sessions. SessionStore.create() and SessionStore.open() need to create a
new Session object, but the constructor of Session is private. What am I
missing to do that?

That was an oversight on our part,. The constructor is just not supposed
to be called by normal users, that's why it's private. I've now added a
protected method SessionStore.createSessionInstance that can be used to
create a session from a sub class.

Thanks! This work well.