Re: Apache, mod_jk and Tomcat looses sessions

2006-08-07 Thread Pid
are you rewriting the URLs in each of the pages to maintain the session? each URL should get modified as a result: /path/to/file.jsp;jsessiond=00?q=param what's your jk config? (unless i've missed something, and given that most people seem to get this to work OK, it's probably a problem

RE: Apache, mod_jk and Tomcat looses sessions

2006-08-07 Thread Markus
Markus wrote on Monday, July 31, 2006 5:39 PM: > Markus wrote on Monday, July 31, 2006 5:34 PM: >> I've got the following problem on one server using Apache 2.0.54-5 >> (Debian x86) with mod_jk 1.2.15 (self-compiled) and tomcat 5.5.17: I try >> to >> create a redirect to a page with a session-id i

RE: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Markus Meissner
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 creat

Re: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Christopher Schultz
Markus, >> 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

RE: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Markus
Christopher Schultz wrote on Monday, July 31, 2006 10:08 PM: > Markus, > > If the session is mandatory, I recommend changing: > > request.getSession(false) > to > request.getSession(true) Thanks for your quick answer. The problem I want to solve is only to cr

Re: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Christopher Schultz
Markus, If the session is mandatory, I recommend changing: request.getSession(false) to request.getSession(true) >>> Thanks for your quick answer. The problem I want to solve is only to >>> create a session if it is really needed, so #redirectToURLWithSID is a >>>

RE: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Markus
Christopher Schultz wrote on Monday, July 31, 2006 9:54 PM: >>> If the session is mandatory, I recommend changing: >>> >>> request.getSession(false) >>> to >>> request.getSession(true) >> >> Thanks for your quick answer. The problem I want to solve is only to >> create a session if it is

Re: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Christopher Schultz
Markus, >> If the session is mandatory, I recommend changing: >> >> request.getSession(false) >> to >> request.getSession(true) > > Thanks for your quick answer. The problem I want to solve is only to create > a session if it is really needed, so #redirectToURLWithSID is a little bit > mo

RE: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Markus
Christopher Schultz wrote on Monday, July 31, 2006 6:42 PM: > Markus, > >>> I try to create a redirect to a page with a session-id if there is no >>> session. Seems to be easy, but in combination with apache/mod_jk my >>> servlet redirects unlimited because it doesn't recognizes the created >>> se

Re: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Christopher Schultz
Markus, >> I try to create a redirect to a page with a session-id if there is >> no session. Seems to be easy, but in combination with apache/mod_jk >> my servlet redirects unlimited because it doesn't recognizes the >> created session. >> >> Btw: Cookies are disabled, this is important. It look

RE: Apache, mod_jk and Tomcat looses sessions

2006-07-31 Thread Markus
Markus wrote on Monday, July 31, 2006 5:34 PM: > I've got the following problem on one server using Apache 2.0.54-5 (Debian > x86) with mod_jk 1.2.15 (self-compiled) and tomcat 5.5.17: I try to > create a redirect to a page with a session-id if there is no session. > Seems to be easy, but in combin