tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector HttpResponseBase.java
Date Thu, 14 Sep 2000 00:18:47 GMT
craigmcc    00/09/13 17:18:46

  Modified:    catalina/src/share/org/apache/catalina/connector
                        HttpResponseBase.java
  Log:
  Set the path property of the session id cookie to "/" if we are running in
  the root context.  Previously, such a cookie would receive no path at all,
  and would therefore not be recognized properly for session maintenance in
  the root context.
  
  Submitted by: Bernd Eilers (bei@staroffice.de)
  PR: BugRat Bug Report #105
  
  Revision  Changes    Path
  1.7       +6 -4      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java
  
  Index: HttpResponseBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HttpResponseBase.java	2000/09/01 21:45:56	1.6
  +++ HttpResponseBase.java	2000/09/14 00:18:46	1.7
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
1.6 2000/09/01 21:45:56 craigmcc Exp $
  - * $Revision: 1.6 $
  - * $Date: 2000/09/01 21:45:56 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
1.7 2000/09/14 00:18:46 craigmcc Exp $
  + * $Revision: 1.7 $
  + * $Date: 2000/09/14 00:18:46 $
    *
    * ====================================================================
    *
  @@ -96,7 +96,7 @@
    * methods need to be implemented.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.6 $ $Date: 2000/09/01 21:45:56 $
  + * @version $Revision: 1.7 $ $Date: 2000/09/14 00:18:46 $
    */
   
   public class HttpResponseBase
  @@ -485,6 +485,8 @@
                   contextPath = context.getPath();
   	    if ((contextPath != null) && (contextPath.length() > 0))
   		cookie.setPath(contextPath);
  +	    else
  +	        cookie.setPath("/");
   	    if (hreq.isSecure())
   		cookie.setSecure(true);
   	    addCookie(cookie);
  
  
  

Mime
View raw message