Servlet Session

Hi all,What is the difference between getSession() and getSession(false)
[93 byte] By [Dolphina] at [2007-10-1 1:07:12]
# 1
getSession(), creates a session if one does not already exists.getSession(boolean create), returns a session if one exists, if one doesn't the it will create one if the argument is true, else it returns null.
serlanka at 2007-7-8 1:24:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
you might want to learnusing the API: http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletRequest.html#getSession(boolean)greets, vi_okay
vi_okaya at 2007-7-8 1:24:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...