For example "http://www.myserver.com/test.jsp;jsessionid=something"
gives a 404 file not found error whereas
"http://www.myserver.com/test.jsp" works without any problem. If I am
connecting directly to tomcat
"http://www.myserver.com:8080/test.jsp;jsessionid=something" (in my case
it's listening on 8080) it works too and jsessionid is used as the
session id.
Which version of Apache do you use and are you sure, you are going to
apache first to get .jsps and you aren't connecting directly to tomcat,
that is listening on port 80?
Bye,
Peter.
Paul Nock wrote:
>
> Saw your comments on tomcat-user distribution list, and I'm curious what you
> mean by "Apache webserver can't handle" ;jsessionid=....? What is the
> problem you see when using jsessionid?
>
> I have Apache/Tomcat and use ;jsessionid= re-writing and my sessions seem to
> work fine. If there's something I've missed though, I'm going to need to
> fix it too...
>
> Paul
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Hrastnik
> Sent: Tuesday, May 15, 2001 6:40 AM
> To: [EMAIL PROTECTED]
> Subject: response.encodeURL and Apache 1.3.12
>
> encodeURL appends ";jsessionid=something" to the given URL (e.g.
> response.encodeURL(test.jsp) results in test.jsp;jsessionid=something).
> The Apache webserver can't handle such URLs. In other words, it is not
> possible to use the (for production systems recommended) tomcat-apache
> environment without using cookies to handle sessions. I know that
> there's a workaround with Apache's mod_rewrite module but IMHO this
> isn't a good solution.
>
> So I created a special encodeURL function that appends the session id
> somehow like "test.jsp?jsessionid=something" but I can't figure out how
> to tell tomcat to use that request variable as the session id.
>
> Thanx for your help,
> Peter.
>
> --
> Mag. Peter Hrastnik
> tele.ring Telekom Service GmbH
> A-1030 Wien, Hainburgerstr. 33
> Tel.: +43/1/931012/3277, Mobil: +43/650/6503277
--
Mag. Peter Hrastnik
tele.ring Telekom Service GmbH
A-1030 Wien, Hainburgerstr. 33
Tel.: +43/1/931012/3277, Mobil: +43/650/6503277