Address "missing cookie" issue

This PR increases the cookie's lifetime, hopefully that will prevent future occurrences of #2514.