tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Galam <galam...@gmail.com>
Subject getSession() creates new session every time when using IE6
Date Wed, 05 Jul 2006 01:19:25 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message