Why do you need a custom SessionConfig? In general Servlet will use
its own SessionConfig that matches the configuration of the deployed
application (generally just using a JSESSIONID cookie, unless it has
been customized).
Stuart
On Tue, Mar 28, 2017 at 2:19 PM, Eric B <ebenzacar(a)gmail.com> wrote:
I've been trying to figure out how to build my own custom
SessionManager to
push my sessions into Redis with a custom SessionConfig implementation, but
am having trouble finding any documentation to that extent.
For the SesisonManager, I've read that I need to:
Develop SessionManager which implements
io.undertow.server.session.SessionManager
Develop SessionManagerFactory which implements
io.undertow.servlet.api.SessionManagerFactory
Develop startup extension which implements
io.undertow.servlet.ServletExtension, and in handleDeployment(Deployment)
method change sessionManagerFactory with new SessionManagerFactory.
Register new ServletExtension by adding
../META-INF/services/io.undertow.servlet.ServletExtension file (file should
contain the name of new ServletExtension. for example
com.my.utils.StartupExtension)
But I can't seem to find anything that indicates how to provide my own
SessionConfig implementation. How do I register a custom SessionConfig
implementation? Is there any documentation to that extent?
Are there any examples that can show me how to create my own SessionManager
and SessionConfig object?
Thanks,
Eric
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev