I ran through the source a couple of times encode url will return the
parameter in many cases there is a bunch of logic to determine if the
session is supposed to be appended, but nothing is apparent as to why I've
been going through and trying to get a false in the logic that determines if
the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael,
Michael Dehmlow wrote:
> The new session println() is called every time(even with the hack).
So, when you make a request with a URL including the jsessionid
parameter, it still gets ignored? This is one page, on one server,
right? Weird.
>
Thanks, I appreciate the info. As you said just a test. I purged cookies on
both ends and disabled cookies on the browser and the server. I have a
session filter which ensures a session is created:
HttpSession session=((HttpServletRequest)request).getSession(true);
if (session.isN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael,
Michael Dehmlow wrote:
> '<%=response.encodeURL("test/") %>'
This should work.
> '<%="test;jsessionid="+request.getSession().getId() %>'
Don't do this; find out what the problem is and fix that. I realize this
is only a test, but it's goo
Alright now I have another problem which is baffling me:
I have:
<%@ page session="true" %>
'<%=response.encodeURL("test/") %>'
in a jsp page.
the result is always 'test/'
so i tried forcing:
'<%="test;jsessionid="+request.getSession().getId() %>'
And the result looks like i expect it too
But w
The caviot to my question was that I wanted to force session rewritting for
only one servlet. But I now see the flaw in this if another servlet in the
same context sets a cookie (jsessionid) that cookie will now be set for the
all other servlets as well. The solution is to use the cookies=false in
You can just set "cookies=false" in the element in the app's
context.xml file.
See the docs for your version of Tomcat for details.
--
Len
On 9/10/07, Michael Dehmlow <[EMAIL PROTECTED]> wrote:
>
> Hello I'm looking for a way to force url session tracking regardless of
> whether the user has co