Cookie:
Cookie là cách lưu trữ dữ liệu tại browser. Khi thực hiện request dữ liệu cookie sẽ được gửi kèm đến server. Với server sử dụng cookie, browser sẽ lưu cookie trong respond trả về. VD: Set cookie với php
<?php
$cookie_name = "user";
$cookie_value = "John Doe";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/");
8/8/25About 2 min