get a cookie in php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
get a cookie in php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
php cookies
//Cookies
//Cookies are stored on the client side. cookies are not as secure as sessions
//and it is recommended that you use sessions as much as possible.
//save addional information as an array in a cookie
<?php
$user = ['name' => 'Brad', 'email' => '[email protected]', 'age' = 35];
$user = serialize($user);
setcookie('user', $user, time() + (86400 *30));
$user = unserialize($_COOKIE['user']);
echo $user['name'];
php cookie
setcookie ('name', 'value', $expiresOn, $path, $domain, $secure, $httponly)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us