prevent falling out of cookie session