294212 Can not customize session cookie path
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1905 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
f40ee83149
commit
81b24d2d7a
|
@ -1,5 +1,6 @@
|
|||
jetty-7.1.4-SNAPSHOT
|
||||
+ 292326 Stop continuations if server is stopped.
|
||||
+ 294212 Can not customize session cookie path
|
||||
+ 302350 org.eclipse.jetty.server.NCSARequestLog is missing JavaDoc
|
||||
+ 304100 Better document JMX setup in jetty-jmx.xml
|
||||
+ 314581 Implement the Sec-Websocket handshake
|
||||
|
|
|
@ -337,12 +337,14 @@ public abstract class AbstractSessionManager extends AbstractLifeCycle implement
|
|||
{
|
||||
if (isUsingCookies())
|
||||
{
|
||||
String sessionPath = (_sessionPath==null) ? contextPath : _sessionPath;
|
||||
sessionPath = (sessionPath==null||sessionPath.length()==0) ? "/" : sessionPath;
|
||||
String id = getNodeId(session);
|
||||
HttpCookie cookie=new HttpCookie(
|
||||
_sessionCookie,
|
||||
id,
|
||||
_sessionDomain,
|
||||
(contextPath==null||contextPath.length()==0)?"/":contextPath,
|
||||
sessionPath,
|
||||
getMaxCookieAge(),
|
||||
getHttpOnly(),
|
||||
requestIsSecure&&getSecureCookies());
|
||||
|
|
Loading…
Reference in New Issue