Why using cookie to store session info is a better idea than just using session info in the request ?

Search Interview Questions

 3348 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text


Java - Interview Questions and Answers

 Q1. Why using cookie to store session info is a better idea than just using session info in the request ?Java EE
Ans. Session info in the request can be intercepted and hence a vulnerability. Cookie can be read and write by respective domain only and make sure that right session information is being passed by the client.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     j2ee   servlets   session   session management   web applications   cookies   httpsession   architecture

Related Questions

  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 cookie and session ? and What is the difference between them ?
  What is the use of HTTPSession in relation to http protocol ?
  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

Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner

comments powered by Disqus

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:

X Close this