This content has been marked as final.
Show 1 reply
-
1. Re: getSession returns null if jsessionid part of path params
gshannon169 Nov 13, 2011 5:56 PM (in response to gshannon169)I can provide more information. It works fine when the redirect is from the Java servlet code. It fails only when the request originates from an ajax call (using gwt). In that case, the jsessionid gets put into the params correctly, but notice that "requestedSessionId" is empty. Here is some log output, after turning on the <Valve className="org.apache.catalina.valves.RequestDumperValve" /> in jbossweb.sar/server.xml:
REQUEST URI =/auth-port/authport/authport;jsessionid=4DFCA059F60BBE4A623D6CA7837C7BBC authType=null characterEncoding=utf-8
contentLength=235 contentType=text/x-gwt-rpc; charset=utf-8 contextPath=/auth-port header=host=ourbox.ourcompany.com:8080 header=user-agent=Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 header=accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 header=accept-language=en-us,en;q=0.5 header=accept-encoding=gzip,deflate header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 header=keep-alive=115 header=connection=keep-alive header=content-type=text/x-gwt-rpc; charset=utf-8 header=x-gwt-permutation=3DEB8D6E9A27A8BB08E4FC5BB54E8F75 header=x-gwt-module-base=http://ourbox.ourcompany.com:8080/auth-port/authport/ header=referer=http://ourbox.ourcompany.com:8080/auth-port/entry/;jsessionid=4DFCA059F60BBE4A623D6CA7837C7BBC?account_name=xx&url_dest_path=app header=content-length=235 header=pragma=no-cache header=cache-control=no-cache locale=en_US method=POST pathInfo=null protocol=HTTP/1.1 queryString=null remoteAddr=172.xx.xx.xx remoteHost=172.xx.xx.xx remoteUser=null requestedSessionId=
scheme=http serverName=ourbox.ourcompany.com serverPort=8080 servletPath=/authport/authport isSecure=false -Gordon