You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Cui Xiaojing-a13339 <a1...@motorola.com> on 2003/06/19 04:38:10 UTC
Question about session
Hello All,
I have used <%@ page session="false" %> to set the page not to join session, but when I use HttpSession session = request.getSession(false) to get session, I still can get the session that created before. Do you think it is a correct status? Why? Thanks.
<%@ page session="false" %>
<%
HttpSession session = request.getSession(false);
%>
Regards,
Xiaojing
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Question about session
Posted by Bill Barker <wb...@wilshire.com>.
----- Original Message -----
From: "Cui Xiaojing-a13339" <a1...@motorola.com>
To: "Tomcat Developers List" <to...@jakarta.apache.org>
Sent: Wednesday, June 18, 2003 7:38 PM
Subject: Question about session
> Hello All,
>
> I have used <%@ page session="false" %> to set the page not to join
session, but when I use HttpSession session = request.getSession(false) to
get session, I still can get the session that created before. Do you think
it is a correct status? Why? Thanks.
>
Yes, this is the "correct status". If you want to know why, either read the
JSP spec, or ask the question on the tomcat-users list.
> <%@ page session="false" %>
> <%
> HttpSession session = request.getSession(false);
> %>
>
> Regards,
> Xiaojing
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org