setcookie('bbuserid', $userid, time() + 60 * 60 * 24 * 365, '/', 'domain.com'); setcookie('bbpassword', md5($password . 'FOOBAR'), time() + 60 * 60 * 24 * 365, '/', 'domain.com');