From: Mike B. <mb...@Ga...> - 2003-07-15 14:44:25
|
th...@cy... wrote: > I got a problem concerning an iframe within our application. In that > iframe, we call a servlet which must be part of the current session, > so it needs to have access to the same session id. Unfortunately it > doesn't know anything about the session id when accessed with > HtmlUnit. It works fine, when accessed with the browser. > First I assumed, that its a cookie problem, so I got me the new > commons-httpclient (2.0 Beta2), but that did not fix it. So I guess, > that its more a problem within HtmlUnit. > If I'm wrong, i'd gladly take any advice to resolve this problem ;) > > I'm using HtmlUnit 1.2.2 Is the session id being store in a cookie or in the url? HtmlUnit doesn't actually touch the cookies - that's entirely handled by commons-httpclient. Are you sending the request back up to a different server than the one that issued the cookie? Can you look at the traffic with a sniffer to see if the cookies are being sent back to the server? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |