getSession « Request « JSP-Servlet Q&A

1. details of request.getSession() statement?

I understand that if we use the following statement

HttpSession session = request.getSession();
Will create the Unique session id, Create Cookie and associate Cookie with the Session id. and helps the container to keep ...

2. Problem with request.getSession

I have a servlet where I am writing the following code:

HttpSession session = request.getSession(false);
if (session != null){
   //statements to delete my cookies //
My problem is ...

3. HTTP session Vs Request.getSession()

4. request.getSession()

5. Request.getSession(false) in JSP

6. request.getSession(false)