[EMAIL PROTECTED] wrote:

You are quite right; I was being sloppy.. Should have added the "if there's no current session" bit.. thanks for the catch..
Which makes me wonder why the original poster was continually getting new sessions; seems weird.

Dave

Dave Newton <[EMAIL PROTECTED]> wrote on 08/16/2005 10:54:39 AM:
[EMAIL PROTECTED] wrote:
HttpSession Session=request.getSession(true);

The "true" means create a new session.
For which J2EE versions is that correct? In my 1.3 JavaDocs it says:

"Returns the current |HttpSession| associated with this request or, if if there is no current session and |create| is true, returns a new
session."

Reply via email to