Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Sessions are not invalidated at shutdown any longer

Sounds like you need the NullSessionDataStore:


On Thu, 28 May 2020 at 08:17, Dirk Olmes <dirk.olmes@xxxxxxxxxx> wrote:

I'm using an embedded Jetty for our web application. A long time ago we
have tied our usage checks to http sessions. This makes use of the fact
that all sessions are properly invalidated when the server shuts down.

I have revisited this topic again now and I'm seeing that the http
sessions are no longer invalidated when the server shuts down. Digging
into DefaultSessionCache's shutdown method I see that to get proper
session invalidation I should not use a SessionDataStore

At the same time it seems I cannot go without a SessionDataStore as
AbstractSessionCache's doStart method insists on using one

Is this inconsistency expected? How would I code my way around it?

jetty-users mailing list
To unsubscribe from this list, visit

Jan Bartel <janb@xxxxxxxxxxx>
Expert assistance from the creators of Jetty and CometD

Back to the top