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
@@ -44,7 +48,7 @@ Simply use `HttpSession` interface to control HTTP session. For example:
44
48
@Controller
45
49
publicclassSessionController {
46
50
47
-
@GetMapping("uri")
51
+
@GetMapping("/uri")
48
52
publicvoiddoSomething(HttpSessionsession) {
49
53
...
50
54
}
@@ -93,17 +97,16 @@ The session is visible only within a single web application instance and will be
93
97
The mode is useful for integration tests when you don't want to communicate with the real Couchbase server instance.
94
98
95
99
## Namespaces
96
-
The starter supports HTTP session namespaces.
100
+
The starter supports HTTP session namespaces to prevent session attribute's names conflicts in a distributed systems like platforms composed with micro-services.
97
101
The name of the namespace can be set in _application.yml_ file:
98
102
99
103
```yaml
100
104
session-couchbase:
101
105
application-namespace: <application_namespace>
102
106
```
103
107
104
-
Each web application in a distributed system has one application namespace under which the session attributes are stored.
108
+
Each web application in a distributed system can have one application namespace under which the application's session attributes are stored.
105
109
Every web application can also access global session attributes which are visible across the whole distributed system.
106
-
Namespaces prevent conflicts in attributes names between different web applications in the system.
107
110
Two web applications can have the same namespace and therefore access the same session attributes.
108
111
If two web applications have different namespaces they cannot access each others session attributes.
109
112
@@ -143,7 +146,7 @@ When changing HTTP session ID every attribute is copied to the new session, no m
143
146
144
147
```yaml
145
148
session-couchbase:
146
-
timeout-in-seconds: 1800 # HTTP session timeout.
149
+
timeout: 30m # HTTP session timeout.
147
150
application-namespace: default # HTTP session application namespace under which session data must be stored.
148
151
principal-sessions:
149
152
enabled: false # Flag for enabling and disabling finding HTTP sessions by principal. Can significantly decrease application performance when enabled.
0 commit comments