tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Meissner" <ml...@meissner.IT>
Subject RE: Apache, mod_jk and Tomcat looses sessions
Date Mon, 31 Jul 2006 22:26:17 GMT
Christopher Schultz wrote on Monday, July 31, 2006 11:55 PM:
>>> Some part of your logic is missing: you do not have a case where it
>>> is known that you MUST create a session. Therefore, you never create
>>> a session. Your code tries and tries again (redirecting continuously)
>>> but never creates a session because you are not handling the case
>>> where you want to create one. You must create a session at some point:
>>> you're just not doing it.
>> Hm, I don't understand your point. Take a look:
>> From
>> if (redirectToURLWithSID(request)) {
>>     request.getSession(true);
>>     String url = request.getRequestURI();
>>     url = response.encodeRedirectURL(url);
>>     response.sendRedirect(url);
> Sorry, I must have missed that the first time around: I'm an idiot.

You are probably not!

> Does your log file indicate that the URL is being re-written properly
> with the session id attached? 

Jep, getting a fresh sid every time, added to the url. It works like a charm
without apache / mod_jk, everything other works, too, using apache / mod_jk.

Beste Grüße / best regards Markus Meissner

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message