$userid = 999;<br>$username = 'test';<br>$time = time();<br>setcookie('userid', $userid, 2592000);<br>setcookie('username, $username, 2592000);<br>setcookie('time', $time, 2592000);<br><br>$security = sprintf("%s|%s|%s", $userid, $username, $time);