Tech News, Magazine & Review WordPress Theme 2017
  • Home
  • Công Nghệ
  • Kho ứng dụng
No Result
View All Result
  • Home
  • Công Nghệ
  • Kho ứng dụng
No Result
View All Result
Androidsvn - Bản tin công nghệ, chuyên máy tính, phần mềm, lập trình
No Result
View All Result

Difference between cookies, session and tokens

admin by admin
May 23, 2020
Home Lập Trình PHP
Share on FacebookShare on Twitter



So what are cookies, sessions, and tokens?

Most web servers use cookies to send the session-ID after you login.
So the server will store the session information in the database while you will only have the session id in a cookie, which is stored in the filesystem of your computer.

The session-ID is randomly generated and should be hard to guess. If you log out, the session will be deleted on the server, but also the server will instruct the browser to delete the cookie containing the session-ID.

Next time you request another page, your browser will automatically send a cookie containing your sessionId, which the server will check to see if it is valid.

An alternative to this is to store information on the client and to sign it. In this scenario, anyone holding the signature can quickly check if the data was manipulated or not. One way to do this is to use JSON Web Tokens or JWT tokens.

Let’s now assume that you want to install an app on your phone, which can help you with your finances and keep track of your spendings. What you don’t want to do is to give your username and password to this app, which was not created by your bank. This is when access tokens are being used to grant access to your data.

Technologies mentioned in this video:

JWT Tokens:
OAuth, OAuth2:
OpenId:

{{DESCRIPTION HERE}}

___

// POSTMAN COMPLETE GUIDE ONLINE COURSE

👉 Want to learn more about Postman? Check my Postman online course.

Get it at a special price and help support this YouTube channel:

___

// I HAVE A QUESTION!

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have a question, it is best to ask your question on the Postman User Group on Facebook or on the Postman Community (links below).

If you have purchased the Postman Online Course, please use the Q&A section or send me a message on Udemy.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

___

// I HAVE A VIDEO IDEA

Do you want me to create a video on a specific topic? Just fill out the form below:

___

// P L A Y L I S T S

▸ Learn Postman |

▸ Postman Crash Course |

▸ Postman Tips & Tricks |

___

// F R E E R E S O U R C E S

▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide

▸▸▸ JOIN the Postman User Group on Facebook

▸▸▸ The OFFICIAL Postman community forum

___

Nguồn: https://androidsvn.com

Xem thêm bài viết khác: https://androidsvn.com/lap-trinh-php/

Xem thêm Bài Viết:

  • Tự học Linux – LPI 1 [Part 1/4] – Tổng quan về Linux và các lệnh cơ bản
  • Lập trình viên – Học lập trình web ra làm gì? Cách kiếm tiền từ nghề lập trình web bạn cần biết
  • BÀI BÁO BỊ XÓA: Cháy nhà máy Rạng Đông hậu quả tương đương 1 quả bom nguyên tử
  • #8 Lộ diện cao nhân cảm âm "nghe tiếng đàn định giới tính" | SIÊU TRÍ TUỆ VIỆT NAM
  • Login system using PHP with MYSQL database
admin

admin

Next Post
Quạt điều hòa Sunhouse: tự động ngắt bơm khi hết nước (SHD7727) • Điện máy XANH

Quạt điều hòa Sunhouse: tự động ngắt bơm khi hết nước (SHD7727) • Điện máy XANH

Comments 27

  1. Valentin Despa says:
    2 years ago

    👉 Want to learn more about Postman? Check my Postman online course.
    https://www.udemy.com/course/postman-the-complete-guide/?referralCode=4E8B90BA4B5EE8DA9237

    Reply
  2. venkata swamy says:
    2 years ago

    Thanks a lot Sir! Make us understand with clear examples

    Reply
  3. Debanga Medhi says:
    2 years ago

    wow! good job!!

    Reply
  4. Thilina Hettiarachchi says:
    2 years ago

    How about storing JWTs in a cookie?

    Reply
  5. Huu Tu Tran says:
    2 years ago

    nice,thanks a lot

    Reply
  6. John M says:
    2 years ago

    5:35 man don't ever scare me like that my name is really John 😂😂

    Reply
  7. Vamsi Krishna says:
    2 years ago

    Very clear explanation. Really saved my time. Thank you, man!!!

    Reply
  8. Dedo Scalera says:
    2 years ago

    Very cool video! Thanks!

    Reply
  9. ark ark says:
    2 years ago

    Nice explanation.. thumbs up!

    Reply
  10. Ronny007 says:
    2 years ago

    Great stuff! 😀

    Reply
  11. sai shan says:
    2 years ago

    Great effort to make 9:32 min video so valuable. Thanks

    Reply
  12. Claudia Sastrowardojo says:
    2 years ago

    can someone use my session id in cookie to log into my account?

    Reply
  13. omar bahy says:
    2 years ago

    2:13 You sayed that the session will be deleted after browser was closen

    When I open the website again how is web server use session id when session was deleted ?

    Reply
  14. Subodh Vashistha says:
    2 years ago

    Loved it <3

    Reply
  15. Mohammad Nawazish Khan says:
    2 years ago

    After login, I get a session id from server which is stored in a cookie; if somebody gets that cookie then would he be able to make requests on my behalf like a security vulnerability?

    Reply
  16. Maedeh Shahabi says:
    2 years ago

    it was wonderful man! do you have a good link for oauth tutorial?

    Reply
  17. THE GUITARISTA says:
    2 years ago

    wow ! the animation made the video more clearer <3 thank you sir

    Reply
  18. KDASH201 says:
    2 years ago

    Really good bro. Thanks

    Reply
  19. Bighton Dube says:
    2 years ago

    Usefull

    Reply
  20. Alaina Friesen says:
    2 years ago

    Kuukie

    Reply
  21. Shrikant Mane says:
    2 years ago

    Best tutorial for this topic, please share the which is best location for store Token at client side like localstorage, session storage or httpcookie only or else other, .. And how to impelement in asp.net core and SPA (Angular2/Vuejs/ReactJs). Awaiting your valuable inputs. Thank you for the video.

    Reply
  22. lakmal gunasekara says:
    2 years ago

    wow, your explanation amazing!!! keep it up

    Reply
  23. luojihencha says:
    2 years ago

    Thank you!

    Reply
  24. Omphemetse Mafoko says:
    2 years ago

    Thank you for your explanation

    Reply
  25. Patrik says:
    2 years ago

    Best tutorial for this topic on YouTube so far. Thank you.

    Reply
  26. Ewa Górka says:
    2 years ago

    Great explanation! Thanks a lot 🙂

    Reply
  27. Abhishek Datkhile says:
    2 years ago

    very simple and animated explanation thank you sir

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tin Hot

Trang trí cửa lớp học mầm non cực đẹp | Lấy trẻ làm trung tâm | Phần 5 | THẾ GIỚI MẦM NON

Trang trí cửa lớp học mầm non cực đẹp | Lấy trẻ làm trung tâm | Phần 5 | THẾ GIỚI MẦM NON

June 22, 2020
GIẢI HỆ PHƯƠNG TRÌNH BẰNG PHƯƠNG PHÁP CỘNG ĐẠI SỐ | ÔN THI TOÁN 9 | LUYỆN THI VÀO 10

GIẢI HỆ PHƯƠNG TRÌNH BẰNG PHƯƠNG PHÁP CỘNG ĐẠI SỐ | ÔN THI TOÁN 9 | LUYỆN THI VÀO 10

June 22, 2020
[Vật lý lớp 7] – Định luật phản xạ ánh sáng

[Vật lý lớp 7] – Định luật phản xạ ánh sáng

June 22, 2020
Bảng Chữ Cái Tiếng Anh [Đầy Đủ + Có Phiên Âm Tiếng Việt] – Hello Coffee Bài 01

Bảng Chữ Cái Tiếng Anh [Đầy Đủ + Có Phiên Âm Tiếng Việt] – Hello Coffee Bài 01

June 22, 2020
📖 Sách nói Tâm lý học và đời sống Full – Chương 1 Tâm lý học và đời sống

📖 Sách nói Tâm lý học và đời sống Full – Chương 1 Tâm lý học và đời sống

June 21, 2020
Tập Kickboxing tại Hà Nội – AKC Fitness

Tập Kickboxing tại Hà Nội – AKC Fitness

June 21, 2020

androidsvn-logo

androidsvn.com là trang tin công nghệ hàng đầu tại Việt Nam. Trang cập nhật nhanh nhất nội dung về công nghệ, máy tính, phần mềm, lập trình…

  • Chính Sách Bảo Mật
  • Liên Hệ

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Công Nghệ
  • Kho ứng dụng

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.