HttpSession getSession(boolean create)
Returns the current HttpSession associated with this request or, if if there
is no current session and create is true, returns a new session.
This is from the J2EE javadocs which can be found at:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html
-Dave
> -----Original Message-----
> From: Mufaddal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 14, 2003 2:18 AM
> To: Tomcat List
> Subject: How do i create a new session ?
>
>
> Hi,
>
> What do i do to get or create a new session ?
>
> <form method="post" action="MyServlet">
> <%
> session.invalidate();
>
> // what do i do here to get a new session ?
> session.setAttribute("id", new Integer(2));
> %>
>
> Thanks.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]