bloritsch 01/06/07 09:45:38 Modified: src/org/apache/cocoon/environment/http Tag: cocoon_20_branch HttpRequest.java Log: Fixed logic error. Sessions should not be cached by us. That logic should be handled by the Servlet Container. Revision Changes Path No revision No revision 1.1.1.1.2.1 +2 -9 xml-cocoon2/src/org/apache/cocoon/environment/http/HttpRequest.java Index: HttpRequest.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/environment/http/HttpRequest.java,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -r1.1.1.1 -r1.1.1.1.2.1 --- HttpRequest.java 2001/05/09 20:49:45 1.1.1.1 +++ HttpRequest.java 2001/06/07 16:45:32 1.1.1.1.2.1 @@ -25,7 +25,7 @@ * to provide request information for HTTP servlets. * * @author <a href="mailto:giacomo@apache,org">Giacomo Pati</a> - * @version CVS $Id: HttpRequest.java,v 1.1.1.1 2001/05/09 20:49:45 giacomo Exp $ + * @version CVS $Id: HttpRequest.java,v 1.1.1.1.2.1 2001/06/07 16:45:32 bloritsch Exp $ */ public class HttpRequest implements Request { @@ -159,15 +159,8 @@ return this.req.getServletPath(); } - private HttpSession cachedSession = null; public Session getSession(boolean create) { - if (this.cachedSession == null) { - javax.servlet.http.HttpSession session = this.req.getSession(create); - if (session != null) { - this.cachedSession = new HttpSession(session); - } - } - return this.cachedSession; + return new HttpSession(this.req.getSession(create)); } public Session getSession() { ---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]