tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Young <yga...@yahoo.com>
Subject HttpSession.isNew() Bug?
Date Wed, 01 Mar 2000 16:41:26 GMT
It seems isNew() always return true in Tomcat 3.1.
I have tested the function using both JSP and servlet.
Here is a JSP file:
<HTML>
<HEAD>
	<TITLE>JSP session page</TITLE>
</HEAD>
<BODY>
<%
	HttpSession ses=request.getSession(true);
	if(ses.isNew()) {
%>
<%=ses.getId()%>
<%	}
%>
</BODY>
</HTML>

The file always outputs the session's ID when it is
run
in Tomcat. However, if the application server is IBM
WebSphere(2.03 on Linux, and 3.02 on Solaris), it
ouputs the ID only at the first time.

Why does the function always return true? Is it a bug?

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Mime
View raw message