1) Check if cookie exists and is valid 2) If it doesn't exist or if it's incorrect, print html form 3) From HTML form set a cookie when they click submit