Update CookieHttpSessionStrategy default parameter from u to _s

This both provides two things:
- more meaningful parameter name  since it relates to session
- less likely to have a collission due to the _ prefix

gh-49
This commit is contained in:
Rob Winch
2014-11-17 13:26:47 -06:00
parent 6b6ed48095
commit 495d19982d
2 changed files with 15 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ import org.springframework.util.Assert;
* </p>
*
* <pre>
* GET /messages/?u=1416195761178 HTTP/1.1
* GET /messages/?_s=1416195761178 HTTP/1.1
* Host: example.com
* Cookie: SESSION=f81d4fae-7dec-11d0-a765-00a0c91e6bf6
* </pre>
@@ -87,7 +87,7 @@ import org.springframework.util.Assert;
* <p>
* To use the original session a request without the HTTP parameter u can be
* made. To use the new session, a request with the HTTP parameter
* u=1416195761178 can be used. By default URLs will be rewritten to include the
* _s=1416195761178 can be used. By default URLs will be rewritten to include the
* currently selected session.
* </p>
*
@@ -150,7 +150,7 @@ import org.springframework.util.Assert;
public final class CookieHttpSessionStrategy implements MultiHttpSessionStrategy, HttpSessionManager {
static final String DEFAULT_ALIAS = "0";
static final String DEFAULT_SESSION_ALIAS_PARAM_NAME = "u";
static final String DEFAULT_SESSION_ALIAS_PARAM_NAME = "_s";
private String cookieName = "SESSION";