RE: How do i create a new session ?
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]
RE: How do i create a new session ?
Forgot to include that it is in the HttpServletRequest class. -Dave -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Friday, February 14, 2003 2:52 PM To: Tomcat Users List Subject: RE: How do i create a new session ? 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do i create a new session ?
For questions like this, this link is useful: http://java.sun.com/products/servlet/2.2/javadoc/index.html However, to create a new session you do the following: request.getSession( true ); --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mufaddal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 12: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]