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 is t in generics in java?
Why enumeration is faster than iterator?
Why is stringbuffer thread safe?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
What is the replace tool?
What is meant by class?
What is the difference between equals() and?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What are methods in java?
class a extends b { } class b extends a { } why java doesn't support cyclic pls explain me with example
Write a program for recursive Traverse?
Can we sort arraylist in java?