Disable session?

Hello,

We implementing an API with Play 2.6, is it possible to completely disable session (JWT or legacy cookie) ?

Hi @0xbaadf00d,

What do you mean by “disable session”? Ignoring the values sent by clients? There is nothing out of the box to do that, but you can add a filter to clear the session.

Hello @marcospereira,

yes and the server don’t send JWT session too.

Hey @0xbaadf00d,

But the server will send session information only if you add something to it (or if you are using a filter that adds session data). I such case, clearing the session will have an impact on how the filter is supposed to work.