Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Dynamic session cookie name

Thank you Greg,

Hmm, that sounds like I really have to do dig into this.

I probably should have mentioned I am running Jetty (9.3) as an embedded server. I have all the code for setting up a Jetty server, HTTP/2, SSL etc. in place. But the only thing I do currently that involves sessions is downcasting the SessionManager to HashSessionManager and then disable session cookies and changing the session URL parameter name on it.

Could you point me to some docs or examples that could help me? I am planning to move to 9.4 as soon as that is released. Is it better for me to wait since things have changed in 9.4?



On 12/08/2016 11:02 PM, Greg Wilkins wrote:

it at least sounds plausible.  Jetty's session managers are designed as pluggable so uses can do exactly this kind of strange thing.
But failing that, you could use the rewrite handler and a custom rewrite rule to make incoming requests switch the session cookie to the one you want based on the URI and/or parameters, thus keeping the session manager the same.

Note that session manager APIs have changed significantly in 9.4.0



jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top