ah ok, I thought you wanted to move this code to the getSession Function.

So you propose to make an ISessionStore right?