Cookie, Session và Token-based authentication
1. Phân biệt Authentication và Authorization Rất nhiều lập trình viên mới hay nhầm lẫn hai khái niệm này: Authentication (Xác thực): Ví dụ: Hành động bạn nhập Username và Password để đăng nhập vào hệ thống. Authorization (Phân quyền): Ví dụ: Sau khi đăng nhập thành công, hệ thống kiểm tra xem bạn là Admin hay User thường, bạn có quyền xóa bài viết hay chỉ được xem. 2. Giao thức HTTP và vấn đề "Stateless" Giao thức HTTP bản chất là Stateless. Nghĩa là server xử lý xong một reque...
Original Source
Read the full article at Dev →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.