Which of the following statements is true about the Digest Authentication scheme?
The getSession() method of the HttpServletRequest interface returns the current session associated with the request, or creates a new
session if no session exists. The method has two syntaxes as follows:
public HttpSession getSession(): This method creates a new session if it does not exist.
public HttpSession getSession(boolean create): This method becomes similar to the above method if create is true, and returns the
current session if create is false. It returns null if no session exists.
Answer B is incorrect. The getSession(false) method returns a pre-existing session. It returns null if the
client has no session
associated with it.
Answer A and E are incorrect. There is no such method as getNewSession() in Java.
Earnestine
6 months agoValentin
6 months agoJonell
6 months agoQueenie
7 months agoEve
7 months agoYoulanda
7 months agoHildred
7 months agoMarnie
8 months agoNatalya
8 months agoJarod
8 months agoDorthy
8 months agoEugene
8 months agoHobert
8 months agoShanda
8 months agoVeta
8 months agoCarey
1 year agoMiss
12 months agoKing
12 months agoTheola
1 year agoWade
1 year agoAndra
12 months agoAlesia
12 months agoMerrilee
12 months agoTrevor
1 year agoGeoffrey
12 months agoSheron
1 year agoMartha
1 year agoPete
1 year agoIn
11 months agoIn
12 months agoIn
12 months agoSheridan
1 year agoCarlton
1 year agoRicarda
1 year agoCraig
1 year ago