php array in cookie
// Storing code
setcookie('your_cookie_name', json_encode($info), time()+3600);
// Reading code
$data = json_decode($_COOKIE['your_cookie_name'], true);
php array in cookie
// Storing code
setcookie('your_cookie_name', json_encode($info), time()+3600);
// Reading code
$data = json_decode($_COOKIE['your_cookie_name'], true);
cookie are not set in php
setcookie('username',$username,time()+60*60*24*365);
// 'Force' the cookie to exists
$_COOKIE['username'] = $username;
php set cookie
<?php
$name = 'COOKIE_NAME';
$value = 'VALUE';
$expireTime = strtotime('+1 years');
$path = '/';
setcookie($name,$value,$expireTime,$path);
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