Fork me on GitHub

Session store (v2.3)

The WebContext is an abstraction do deal with the HTTP request and response but also with the web session, via the getSessionIdentifier, getSessionAttribute and setSessionAttribute methods.

To specifically deal with the session, it generally relies on a SessionStore which may be available via the getSessionStore method.

The SessionStore has the following methods:

For example, the J2EContext currently uses the J2ESessionStore which relies on the J2E session. In Play, we have a specific cache-based PlayCacheStore as well as in Knox, which has a cookie-based KnoxSessionStore.