Cookies vs JavaScript Local Storage vs Session Storage - What, The Difference and Which one to use?

preview_player
Показать описание
Cookies vs JavaScript Local Storage vs Session Storage
In this video, you will learn what these are. We will also go over the differences and then talk about which one to use and when.

This video is part of the JavaScript for Google Tag Manager course.
Understanding JavaScript will help you in taking your Google Analytics and Google Tag Manager skills to the next level.

00:00 Introduction
00:15 What are cookies
01:39 What is Local Storage/ JavaScript Local Storage
02:36 What is Session Storage
03:38 How to check Cookies, Local Storage and Session Storage values in your web browser
05:38 Cookies vs JavaScript Local Storage vs Session Storage, which one to use?

Рекомендации по теме
Комментарии
Автор

I can imagine many usecases for cookies, bit none for localstorage or sessionstorage. Did you explain that somewhere in another video? Grtz.

SA-ojbo
Автор

Which is safer to use for authentication, cookies or JWT?

sto
Автор

great video! do you have an example of what you would store as a cookie and as local storage?

joetraunero