Fork me on GitHub

Session store (v1.9)

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.

These methods can be backed by a SessionStore. This interface defines the proper implementation for the web session thanks to the following methods: getOrCreateSessionId, get and set.

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