cookie are not set in php
snippet in php

cookie are not set in php

user5326

setcookie('username',$username,time()+60*60*24*365);
// 'Force' the cookie to exists
$_COOKIE['username'] = $username;