If you are not laughing at yourself, then you just didn't get the joke.
Originally posted by Arun Kumarr:
According to me I have made changes to the session
in "loginServlet.java". So it should return true.
If you are not laughing at yourself, then you just didn't get the joke.
isNew
public boolean isNew()
Returns true if the client does not yet know about the session or if the client chooses not to join the session. For example, if the server used only cookie-based sessions, and the client had disabled the use of cookies, then a session would be new on each request.
Returns:
true if the server has created a session, but the client has not yet joined
Throws:
java.lang.IllegalStateException - if this method is called on an already invalidated session
If you are not laughing at yourself, then you just didn't get the joke.
Originally posted by Arun Kumarr:
***coming back to case 1) Take that there is an existing session and boolean is true, does it return a new session with session context and parameters set similar to that of the incoming existing session.
If you are not laughing at yourself, then you just didn't get the joke.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
If you are not laughing at yourself, then you just didn't get the joke.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Consider Paul's rocket mass heater. |