What is Session and cookies?Explain in detail with an
example?
Answer Posted / debapriya maity
we r all familiar with the method given below
HttpSession session==request.getSession(true);
what happen here
Container whenever gets a request for a session from a client,
it checks out whether the request is for existing or a new
one,how it does.
If a new session: creates a cookie(small text file) ,stuffs
the session id ,and send it to the client as apart of
response headers (Set Cookie:)
existing one---gets the sessionid ,searches for the matching
session and associate with the request.
Now thing if ur browser is cookies disable, what will happen
next?? :)
Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
What is the nested interface?
Can we execute a program without main?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
What is this keyword used for?
How would you dynamically allocate memory to an array?
What is the base class of all classes?
What is append in java?
How many bytes is a unicode character?
What is the instance of an object?
Can we create a class inside a class in java?
How many types of memory areas are allocated by jvm?
What is size of int in java?
What do you mean by singleton class in java?
Why are generics used?
What is a hashmap used for?