second attempt at setting a cookie to keep doors open