Skip to content

Commit e63bcf9

Browse files
Merge pull request #41 from barrantesgerman/master
Update links in Session section #30
2 parents 4e4d5e0 + 61983f6 commit e63bcf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2015-03-27-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ POST("/login", (routeContext) -> {
3939
});
4040
```
4141

42-
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.
4343
If you want a (custom) session manager in your application then you must inject that manager with:
4444

4545
```java
@@ -51,7 +51,7 @@ A session manager is composed of two parts:
5151
- `SessionDataStorage` that is a CRUD over `StoreData`
5252
- `SessionStrategy` that is responsible to fetch the session id from a HttpRequest (for example from a cookie or header).
5353

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.
5555
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()`.
5656

5757
See below a snipet code about how to work with cookie session in Pippo:

0 commit comments

Comments
 (0)