Add cookie functionality to response.php