Is there only one way to get session in java calling request.getSession()? -


i know there 1 way call session using request.getsession() or there other way?

the api shows 2 methods. 1 creates session if needed, , other doesn't.

http://java.sun.com/javaee/5/docs/api/javax/servlet/http/httpservletrequest.html#getsession%28%29

and

http://java.sun.com/javaee/5/docs/api/javax/servlet/http/httpservletrequest.html#getsession%28boolean%29


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -