Complete cookie functionality in response.php