set the cookie right away