Thierry Cools wrote:
Hi, I've a strange problem using weblogic 6.0, when I start for the first time my browser (IE or Netscape), and after that start my application,weblogic add the session id information in the adress bar, after that all my links are false. (Images & links to other pages) e.g. http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=OlwYdOyUvn4izb1jzhih14cy8Vdz8fXakMh5dJN9LI2p5OpRzgYp|38225443033804101/-1408233741/7001/7002 becomes this after I clicked the anonymous login link. http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=OlwYdOyUvn4izb1jzhih14cy8Vdz8fXakMh5dJN9LI2p5OpRzgYp|38225443033804101/-1408233741/7001/anonLogon.do Note that this appears only the fisrt time. Can anybody help me out ? Thanks in advance. 
Thierry 
Thierry Cools

Senior Java Developer
S1 Brussels
Kleine Kloosterstraat, 23
1932 st. Stevens-Woluwe
Belgium
Tel : +32 2 200 43 82
Email : [EMAIL PROTECTED]


I'm not sure quite what you are asking about ... do you mean that the "jsessionid" entry disappears after the first link?  If so, that would be normal behavior if you have cookies enabled in your browser.  Tomcat does the same thing.

On the first transaction in a session, your servlet container has no idea whether or your client supports cookies or not, so it sends the session identifier both ways (as part of the URL, and as a cookie).  If the session id comes back in as a cookie, the container says "aha, this user supports cookies, so I don't need to do URL rewriting any more".

NOTE:  In order to support sessions without cookies, you must do URL rewriting around all hyperlinks you generate, using

    response.encodeURL("path-to-a-page");

Struts will do this for you in the <html:form> and <html:link> tags.

Craig McClanahan
 

Reply via email to