Removed unused parameter to cookie serialize method

- Removed unused parameter to cookie serialize method and fixed usage o the same elsewhere