Thanks Neeraj,
Ok , So you meant to say that we need to explicitly check for the same and it should not be left on the container(Please correct me if I am getting wrong).
But as per my understanding from
head first servlets and jsp page number 238,It is container that takes care for all the underlying stuff behind cookie handling and url
rewriting.My confusion is still on the fact that if container seems to take care for everything then why we programmers are expected to do this.
Rather everything should have been abstracted whether cookie creation or url rewriting(means encodeURL() should have been called implicitly in case of servlets),
Programmers should have been able to work directly to get/set attributes in the session.
May be my understanding is not correct n asking a silly question but please clarify me.........Thanks again!!