/** * get the cookies values extracted * @return null|array array of cookie data */ function getBrowserCookies() { $authenticationAndSecurity = new authenticationAndSecurity(); if (null === $authenticationAndSecurity->getCookie('Set-Cookie0') || $authenticationAndSecurity->getCookie('Set-Cookie0') === null) { $cookies = null; } else { $cookie0 = $this->getSingleCookie('Set-Cookie0'); $cookie1 = $this->getSingleCookie('Set-Cookie1'); $cookies[0] = $this->splitCookie($cookie0); $cookies[1] = $this->splitCookie($cookie1); } return $cookies; }