tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Len Popp" <len.p...@gmail.com>
Subject Re: getSession() creates new session every time when using IE6
Date Wed, 05 Jul 2006 01:50:27 GMT
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 <galam.ny@gmail.com> 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">
> <%@page 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message