httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Satya Narayan Dash" <ndsa...@rediffmail.com>
Subject [users@httpd] Session Loss: Apache 2.0.47
Date Tue, 18 Nov 2003 16:32:28 GMT
<P>
Hi,<BR>
<BR>
Please help me to debug this. I did not get any reply for my previous query.<BR>
<BR>
I am havinng Apache 2.0.47 with Tomcat 4.1.27.( connector: mod_jk )<BR>
<BR>
I am making some POST requests via some servlets. The scenario is like this.<BR>
<BR>
Class A --&gt; invokes Servelt1 (HttpURLConnection is used)<BR>
<BR>
It gets the session id.<BR>
[<BR>
&nbsp; HttpServletRequest's getSession(true) is used and then I am getting the <BR>
&nbsp; id --&gt; by HttpSession's getId().<BR>
<BR>
]<BR>
<BR>
and with that id invokes another servlet, Servlet2<BR>
<BR>
(httpd://localhost:8080/servlets/Servlet2;jsessionid=&lt;sessionid&gt;)<BR>
<BR>
But in the doPost() method of the Servlet2, the session id is getting <BR>
changed.&nbsp; [here session is by getSession() method, so the session should remain the<BR>
same,i.e, the current session.]<BR>
<BR>
However, the session id remains the same for apache 2.0.40 + tomcat 4.1.27 (mod_jk).<BR>
Hence this is&nbsp; not a problem with the ServletEngine, rather with Apache.<BR>
<BR>
I am using JRE1.4.2, hence the user-agent in the header is Java\1.4.2.<BR>
<BR>
I do not know how it is getting changed. In the access_log, the invovcation prints<BR>
the correct jsessionid, however in the mod_jk it is getting changed, while doing an unmarshalling.
Is it a bug or am I making any configuration mistake??<BR>
<BR>
Please help.<BR>
<BR>
regards,<BR>
Satya.<BR>
<BR>

</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG
SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom"
BORDER=0 VSPACE=0 HSPACE=0 HEIGHT=74 WIDTH=496></a>

Mime
View raw message