You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pippo allow you to customize Session via [pippo-session]({{ site.codeurl }}/pippo-session) module.
42
+
Pippo allow you to customize Session via [pippo-session]({{ site.codeurl }}/pippo-session-parent/pippo-session) module.
43
43
If you want a (custom) session manager in your application then you must inject that manager with:
44
44
45
45
```java
@@ -51,7 +51,7 @@ A session manager is composed of two parts:
51
51
-`SessionDataStorage` that is a CRUD over `StoreData`
52
52
-`SessionStrategy` that is responsible to fetch the session id from a HttpRequest (for example from a cookie or header).
53
53
54
-
The default session manager comes with a [MemorySessionDataStorage]({{ site.codeurl }}/pippo-session/src/main/java/ro/pippo/session/MemorySessionDataStorage.java) that keeps the session data in a Map and a [CookieSessionStrategy]({{ site.codeurl }}/pippo-session/src/main/java/ro/pippo/session/CookieSessionStrategy.java) that saves/retrieves the session id to/from a cookie.
54
+
The default session manager comes with a [MemorySessionDataStorage]({{ site.codeurl }}/pippo-session-parent/pippo-session/src/main/java/ro/pippo/session/MemorySessionDataStorage.java) that keeps the session data in a Map and a [CookieSessionStrategy]({{ site.codeurl }}/pippo-session-parent/pippo-session/src/main/java/ro/pippo/session/CookieSessionStrategy.java) that saves/retrieves the session id to/from a cookie.
55
55
All the implementation is based on `Response.finalizeResponse()`. On this method I try to store/delete the session id and the session data. The main idea is that __ALL__ the methods from Response that commit the response must call `finalizeResponse()`.
56
56
57
57
See below a snipet code about how to work with cookie session in Pippo:
0 commit comments