tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach>
Subject Re: Which JSESSIONID is evaluated first? The one from the Cookie or from the URL?
Date Mon, 24 Oct 2005 13:10:08 GMT

I think the URL Session ID is interpreted first, but then the Cookie is 
and set. See o.a.c.connector.CoyoteAdaptor.postParseRequest.

First is sessionid set from URL (parseSessionId L. 249) and later set again
from cookie ( parseSessionCookiesId L. 324). You can simple test this 
with a simple jsp
that schon the sessionid and later send the request again with 
;jsessionid=123123as ... :-)


Leon Rosenberg schrieb:

>Sorry for being too lazy for looking into the source code, but I
>thought, that for people of knowledge it would be 10 sec to give me
>the right answer :-)
>There is an interesting issue of high-jacking a session on a .net
>application (surely founded in bad programming rather than the
>framework) but I'd be interested if such a thing is possible with
>tomcat too.
>For german-speaking people :
>For all the others, is it possible to overwrite the tomcat issued
>session (cookie session) by attaching a different session in the url?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message