PHP Cookies
PHP Cookies Tutorial Cookies are small pieces of data stored on the user’s browser. PHP can create, read, and delete cookies to track user activity, preferences, or login information. 1️⃣ Setting a Cookie
|
1 2 3 4 5 6 7 |
<?php // Set a cookie // setcookie(name, value, expire, path, domain, secure, httponly) setcookie("username", "Vipul", time() + 3600, "/"); // Expires in 1 hour echo "Cookie has been set!"; ?> |
...
