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
8 months agoValentin
9 months agoJonell
9 months agoQueenie
9 months agoEve
9 months agoYoulanda
9 months agoHildred
10 months agoMarnie
10 months agoNatalya
10 months agoJarod
10 months agoDorthy
10 months agoEugene
10 months agoHobert
10 months agoShanda
10 months agoVeta
10 months agoCarey
1 year agoMiss
1 year agoKing
1 year agoTheola
1 year agoWade
1 year agoAndra
1 year agoAlesia
1 year agoMerrilee
1 year agoTrevor
1 year agoGeoffrey
1 year agoSheron
1 year agoMartha
1 year agoPete
1 year agoIn
1 year agoIn
1 year agoIn
1 year agoSheridan
1 year agoCarlton
1 year agoRicarda
1 year agoCraig
1 year ago