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.
Carey
1 months agoMiss
9 days agoKing
13 days agoTheola
21 days agoWade
1 months agoAndra
15 days agoAlesia
17 days agoMerrilee
18 days agoTrevor
2 months agoGeoffrey
11 days agoSheron
28 days agoMartha
1 months agoPete
2 months agoIn
4 days agoIn
11 days agoIn
18 days agoSheridan
2 months agoCarlton
2 months agoRicarda
2 months agoCraig
2 months ago