-
1. Re: jsessionid missged in the request
c.h. May 21, 2009 2:53 AM (in response to gfzhang)same bug. help!!!
When I open http://localhost:8080/testSessionsWeb/
All work correct,
but If I use revers proxy: http://test.loc/
I have new session every time (jsessionId is changing)
I use nginx, here vhost config :server { listen test.loc:80; server_name test.loc; location / { proxy_pass http://localhost:8080/testSessionsWeb/; } }
in jboss jboss-4.2.2.GA all works, but in jboss-5.0.1.GA isn't
where is the problem??? -
2. Re: jsessionid missged in the request
webalgorithm Jun 14, 2009 3:11 PM (in response to gfzhang)Yep, very similar issue here. I am in the processing of upgrading from 4.0.5 GA to 5.1.0 GA. In my case in manifests itself even without load balancing. I am using mod_jk with rewrites.
My app is deployed as "web.war" (exploded - not sure if that makes any difference), <context-root>web</context-root>.
Requests such as http://hostname/web/myaccount.htm are 100% ok.
Requests such as http://hostname/myaccount.htm result in new sessionid 100% of the time. (note that apache rewrites this url RewriteRule ^(\w+).htm(\w+)?$ web/$1.htm$2 [L])
Clearly an issue with cookie path.
Also interesting: I tested this with all 4.x versions of JBoss - no issues. All 5.x versions exhibit this behavior.
Any suggestions? I've tried playing around with emptySessionPath - does not seem to have much impact. -
3. Re: jsessionid missged in the request
c.h. Jun 15, 2009 2:37 AM (in response to gfzhang)Add
<SessionCookie path="/">
element inside a<Context>
element, for example in context.xm of application or in deploy/jbossweb.sar/context.xml
look http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4177448