Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appserver-io/appserver] Session Handling flexibility #506

Closed
olysyuk opened this issue Feb 10, 2015 · 2 comments
Closed

[appserver-io/appserver] Session Handling flexibility #506

olysyuk opened this issue Feb 10, 2015 · 2 comments

Comments

@olysyuk
Copy link

olysyuk commented Feb 10, 2015

Currently the only session handler type is FileSessionHandler, that is hardcoded inside many parts. Inside StandardGarbageCollector session file removal is present.

Why not just use http://php.net/manual/en/class.sessionhandlerinterface.php to manage sessions. That will allow database sessions as well.

@wick-ed
Copy link
Member

wick-ed commented Feb 10, 2015

Hi @olysyuk ,

looks promising, we will have a look for the next release 👍

@wick-ed wick-ed added this to the Release 1.1.0 "Iron Knight" milestone Feb 10, 2015
@wagnert wagnert changed the title Session Handling flexibility [appserver-io/appserver] Session Handling flexibility Mar 17, 2015
@wagnert wagnert modified the milestones: Release 1.3.0, Release 1.1.0 "Iron Knight" Mar 20, 2015
@wick-ed wick-ed modified the milestones: Release 1.2.0 "Iron ?", Release 1.3.0 "Iron ?" Nov 24, 2015
@wagnert
Copy link
Member

wagnert commented May 11, 2016

Hi, last but least ;)

We've refactored the session handling with upcoming version 1.1.1. The new release allows the specify a custom session handler in the META-INF/context.xml like

<context>
 <managers>
  ...
   <manager name="SessionManagerInterface" type="AppserverIo\Appserver\ServletEngine\StandardSessionManager" factory="AppserverIo\Appserver\ServletEngine\StandardSessionManagerFactory">
     <sessionHandlers>
       <sessionHandler name="filesystem" type="AppserverIo\Appserver\ServletEngine\Session\FilesystemSessionHandler" factory="AppserverIo\Appserver\ServletEngine\Session\SessionHandlerFactory">
         <!-- params>
           <param name="sessionMarshaller" type="string">AppserverIo\Appserver\ServletEngine\StandardSessionMarshaller</param>
         </params -->
       </sessionHandler>
     </sessionHandlers>
   </manager>
  ...
  </managers>
</context>

@wagnert wagnert closed this as completed May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants