Server : Added function to retrieve cookie