Hi Len,

Thanks for trying the test page.

I figured out the problem now. It was because the URL I used to visit the
web pages.

Previously, I used the machine's hostname in the URL. Now, I change it to
use localhost and it is fine.
i.e.

http://serverone:8080/app01/hello.jsp   (bad, getSession() return new
session every time)
http://localhost:8080/app01/hello.jsp  (okay).


I think for some reason, the hostname in the URL has to match the name of
the host specified in the <Host...> section of the server.xml. Otherwise,
IE6 won't be able to set the cookie correctly.



Galam.






On 7/4/06, Len Popp <[EMAIL PROTECTED]> wrote:

It works correctly for me, with IE6 and Tomcat 5.5.17. On the first
request, isNew = true. On subsequent requests, isNew = false and the
session ID is the same.

Perhaps your IE is set to ignore all cookies, or to ignore cookies
from certain hosts.
--
Len

On 7/4/06, Galam <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am having problem getting my application to work with IE6.
>
> In IE6, everytime when I refresh the page, it creates a new session with
> different session ID.
>
> Firefox doesn't have this problem.
>
>
> Here is my sample test page:
>
> ------------------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <[EMAIL PROTECTED] import="javax.servlet.http.*"
> %>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <title>Test</title>
> </head>
> <body>
> <br>
> Current Time = <%=new java.util.Date()%>
> <br>
> <%
>  HttpSession ms = request.getSession(false);
> %>
> session isNew = <%=ms.isNew() %>, ID = <%=ms.getId() %>
> <br><br>
> </body>
> </html>
> --------------
>
>
> Can anyone give it a try?
>
> Thanks!
>
>
> Galam.
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to