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 http://www.dlite.de/42/TestServlet.java
>> 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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to