What is Session and cookies?Explain in detail with an
example?

Answers were Sorted based on User's Feedback



What is Session and cookies?Explain in detail with an example?..

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

What is Session and cookies?Explain in detail with an example?..

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

What is Session and cookies?Explain in detail with an example?..

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

What is Session and cookies?Explain in detail with an example?..

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

Post New Answer

More Core Java Interview Questions

How can a gui component handle its own events?

0 Answers  


Why declare Main() inside the class in java ?

0 Answers   HCL,


What are three ways in which a thread can enter the waiting state in java programming?

0 Answers  


1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?

2 Answers   RBS,


What do you understand by Header linked List?

0 Answers   Genpact,


what is abstract method with example?

6 Answers   Infosys, Virtusa,


What is size_t?

0 Answers  


Give a brief description of java socket programming?

0 Answers  


What is clipping?

2 Answers  


What are the different types of data structures in java?

0 Answers  


WHAT IS JDK,JVM,CLASS DEFINE ALL?

2 Answers  


Is break statement can be used as labels in java?

0 Answers  


Categories