Difference between sessionstorage, cookies, and localstorage.



Difference between sessionstorage, cookies, and localstorage...

Answer / Manoj Kalyani

SessionStorage only stores data for one session (until the page is closed or the tab is closed). Cookies can store small amounts of data across sessions. LocalStorage stores data across sessions and even after the browser is closed and reopened. The main difference is their lifespan.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How will you explain auto bootstrap process in angularjs?

1 Answers  


What is angular httpinterceptor?

1 Answers  


What is dependency injection (di) in angular?

1 Answers  


Which browsers does angular work with?

1 Answers  


What is example of directive?

1 Answers  


Does typescript have a future?

1 Answers  


What is dependency injection in angularjs and how does it work?

1 Answers  


What is single page application?

1 Answers  


What is injectable in angular2?

1 Answers  


What are angular directives?

1 Answers  


What is the basic need to start with AngularJS?

1 Answers  


Difference between ng-bind and ng-model directive.

1 Answers  


Categories