What is Session and cookies?Explain in detail with an
example?
Answers were Sorted based on User's Feedback
Answer / ravikiran
session will keep track of user interaction of a single client
cookies are the ones which are the small server side
entities to store the client side data inside it.
Is This Answer Correct ? | 27 Yes | 8 No |
Answer / 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 |
Answer / manikandan [ gtec,vellore ].
Session,Keeps a track of a User activities across the web pages.
Cookies,it is a small text file creates by a application
server and stored in a client environment.it stores a client
id and cookies can b read by appropriate application server
Is This Answer Correct ? | 12 Yes | 1 No |
Answer / viral koradiya
Cookie is the most important topic in servlet.
Cookies,it is a small text file creates by a application
server .
cookie stored in a client environment.it stores a client
id and cookies can b read by appropriate application server
Is This Answer Correct ? | 3 Yes | 0 No |
What are features of java?
How does arrays sort work in java?
What is difference between pointer and reference?
What is bubble sort in java?
What is a double vs float?
What are abstract methods in java?
What do you understand by overloading and overriding in java?
Does A Class Inherit The Constructors Of Its Superclass?
what is the constructor and how many types of constructors are used in java?
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky
Can you explain the cs option of java interpreter?
What is a subsequence of a string?