added methods, persistsCookie and deleteCookie