How does a Spring session support multiple sessions in one browser?

Spring session documentation describes it as one of the benefits of using it, as follows.

Providing one browser with multiple sessions simultaneously in a transparent way. For example, many developers want to allow the user to authenticate with multiple accounts and switch between them just like you can in gmail.

Technically, how can this benefit be used, how is it realized?

+4
source share
1 answer

As of Spring Session RC1, Spring Session will track all sessions in a single cookie. Using a template like this:

0 defaultsession alias sessionid alias2 sessionid2

, , , "_s" . , URL/index? _s = alias2 sessionid2. _s undefined, 0. , /index . CookieHttpSessionStrategy

.

+3

All Articles