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

Differentiate between class and structure.

0 Answers   Amdocs, Motorola,


How to Sort Strings which are given in List and display in ascending order without using java api.

1 Answers   LIC,


What do you know about java?

0 Answers  


what is the diff b/w arraylist and vector?

6 Answers   Code Genesis, Genesis, Sprintine Labs,


What is the difference between hashmap and hashtable in java?

0 Answers  






How would you use Bubble Sort to sort the number of elements?

0 Answers   Genpact,


Write a program to print the pattern given below

0 Answers  


Write a program to check string is palindrome without using loop?

0 Answers   Cyient,


What is variable in java?

0 Answers  


we cannot create an object of interface but we can create a variable of it

1 Answers  


Explain the selection sort algorithm and state its time complexity?

0 Answers   Flextronics,


What is a top level class in java?

0 Answers  


Categories