src/Checks/SessionCheck.php
public function getCookie(ResponseInterface $response)
    {
        $result = null;
        $cookies = $response->getHeader('Set-Cookie');

        foreach ($cookies as $cookie) {
            if (strpos($cookie, 'SESSID') !== false) {
                $result = $cookie;
            }
        }
        return $result;
    }
public function getCookie(ResponseInterface $response)
    {
        $result = null;
        $cookies = $response->getHeader('Set-Cookie');

        foreach ($cookies as $cookie) {
            if (strpos($cookie, 'SESSID') !== false) {
                $result = $cookie;
            }
        }
        return $result;
    }
public function getCookie ( ResponseInterface $ response ) { $ result = null ; $ cookies = $ response -> getHeader ( 'Set-Cookie' ) ; foreach ( $ cookies as $ cookie ) { if ( strpos ( $ cookie , 'SESSID' ) !== false ) { $ result = $ cookie ; } } return $ result ; }
Get PHPSESSID or SECSESSID cookie set from the response if it exists.

@param ResponseInterface $response
@return string|null Cookie contents or null if it doesn't exist
Get PHPSESSID or SECSESSID cookie set from the response if it exists .