Have you ever used sessionStorage ? What is the better way to store session information - sessionStorage or session cookie ?
Javasearch.buggybread.com

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.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. Have you ever used sessionStorage ? What is the better way to store session information - sessionStorage or session cookie ?Session Management
Ans. Session Cookie, because session storage can be accessed from XSS (Cross site Scripting) attacks but cookies (if set with "HttpOnly" and "Secure" flags) are more safer against these attacks.

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

   Like         Discuss         Correct / Improve     SessionStorage  session cookie  session management  javascript


Related Questions

  What is session tracking and how do you track a user session in servlets?
  what is the use of cookie and session ? and What is the difference between them ?
  What are different types of cookies ?
  What is a cookie ?
  Why using cookie to store session info is a better idea than just using session info in the request ?
  http protocol is by default ... ?



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: