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