Effect CommunityEC
Effect Community3y ago
114 replies
TheStockBroker

Session Management with a Provided Service

I have to manage sessions, I do that using a service I provide in every request.
It has a Session interface to it. There is also AuthenticatedSession (the former is anonymous session) that is just an extended Session. I want to have a Session service that I provide and consume to create an AuthenticatedSession. With the rule being that all Session services can be fulfilled by an AuthenticatedService but not the other way around. How can I make that happen? Is that even possible?
Was this page helpful?