Implemented cookie management from client side.