Dailymotion.php
protected function readSession()
    {
        $session    = array();
        $cookieName = sprintf(self::SESSION_COOKIE, $this->grantInfo['key']);
        $cookieValue = filter_input(INPUT_COOKIE, $cookieName);

        if (!empty($cookieValue))
        {
            parse_str(
                trim((get_magic_quotes_gpc() ? stripslashes($cookieValue) : $cookieValue), '"'),
                $session
            );
        }
        return $session;
    }
protected function readSession()
    {
        $session    = array();
        $cookieName = sprintf(self::SESSION_COOKIE, $this->grantInfo['key']);
        $cookieValue = filter_input(INPUT_COOKIE, $cookieName);

        if (!empty($cookieValue))
        {
            parse_str(
                trim((get_magic_quotes_gpc() ? stripslashes($cookieValue) : $cookieValue), '"'),
                $session
            );
        }
        return $session;
    }
protected function readSession ( ) { $ session = array ( ) ; $ cookieName = sprintf ( self :: SESSION_COOKIE , $ this -> grantInfo [ 'key' ] ) ; $ cookieValue = filter_input ( INPUT_COOKIE , $ cookieName ) ; if ( ! empty ( $ cookieValue ) ) { parse_str ( trim ( ( get_magic_quotes_gpc ( ) ? stripslashes ( $ cookieValue ) : $ cookieValue ) , '"' ) , $ session ) ; } return $ session ; }
Read the session from the session store.
Default storage is cookie, subclass can implement another storage type if needed.
Information stored in the session are useless without the API secret. Storing these information on the client
should thus be safe as long as the API secret is kept... secret.

@return array Stored session or an empty array if none found.
Read the session from the session store . Default storage is cookie subclass can implement another storage type if needed . Information stored in the session are useless without the API secret . Storing these information on the client should thus be safe as long as the API secret is kept ... secret .