Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. Cookie and Session are used to store the user information. Cookie stores user information on client side and Session does it on server side. Primarily, Cookies and Session are used for authentication, user preferences, and carrying information across multiple requests. Session is meant for the same purpose as the cookie does. Session does it on server side and Cookie does it on client side. One more thing that quite differentiates between Cookie and Session. Cookie is used only for storing the textual information. Session can be used to store both textual information and objects.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  session   session management   java   cookies   authentication   web application   ebay intermediate|
|What is session tracking and how do you track a user session in servlets?|
|What are different types of cookies ?|
| Please specify in what sequence the objects of following classes will be created ?|
Session , SessionFactory, Query , Configuration
|What is a cookie ?|
|What is the use of HTTPSession in relation to http protocol ?|
|Why using cookie to store session info is a better idea than just using session info in the request ?|
|http protocol is by default ... ?|
|How many SessionFactory and Session objects are created ?|
| What does the following exception means|
org.hibernate.LazyInitializationException: could not initialize proxy - no Session