how to save something in cookie php code example
Example 1: cookie are not set in php
setcookie('username',$username,time()+60*60*24*365);
// 'Force' the cookie to exists
$_COOKIE['username'] = $username;
Example 2: cookies php syntax
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");