updated cookie settings for more security.