$user['securitytoken'] = sha1($user['userid'] . sha1($user['salt']) . sha1(COOKIE_SALT));$user['logouthash'] =& $user['securitytoken'];