DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44117>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44117

           Summary: ProxyPass in Apache http server wipes session data
           Product: Tomcat 6
           Version: 6.0.14
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello,
I hope this isn't an existing fault as I searched but found nothing exactly
matching. I also didn't know whether this was a tomcat or apache issue.

Basically, I'm using apache 2.2 with tomcat 6. I'm also using ProxyPass to make
life a bit easier.

However, when I store session data it gets wiped after what seems to be
hyperlinking to a new page. When I remove apache and use tomcat directly all is
well. To make it as simple as possible to recreate the fault below is some
example code that fails on the final hyperlink file, and I've missed out all the
obvious stuff like html tags, etc. This example uses form beans, but fails just
the same when simply writing directly to the session object.

index.jsp:
<form method="post" action="BeanProcess.jsp">
  <input type=text name=username />
  <input type=submit name=submit/>
</form>

BeanProcess.jsp:
<jsp:useBean id="user" class="com.neil.BeanFormTest" scope="session"/>
<jsp:setProperty name="user" property="*"/> 
username is set as 
<jsp:getProperty name="user" property="username" />
<a href="BeanProcessShow.jsp">Continue to show data</a>

At this point, the username is output ok. Then clicking the hyperlink:

BeanProcessShow.jsp
<jsp:useBean id="user" class="com.neil.BeanFormTest" scope="session"/>
Name: <jsp:getProperty name="user" property="username" />


At this point, the whole of the session data is wiped. Using session object
directly produces exactly the same fault.

If I stop apache and run tomcat by itself, all is well.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to