public function getTokenName()
    {
        $session = \PHPSession::singleton();

        if ($session->hasAttribute(TokenStore::TOKEN_NAME)) {
            $name = $session->getAttribute(TokenStore::TOKEN_NAME);
        } else {
            $name = 'tao_' . substr(md5(microtime()), rand(0, 25), 7);
            $session->setAttribute(TokenStore::TOKEN_NAME, $name);
        }

        return $name;
    }
public function getTokenName()
    {
        $session = \PHPSession::singleton();

        if ($session->hasAttribute(TokenStore::TOKEN_NAME)) {
            $name = $session->getAttribute(TokenStore::TOKEN_NAME);
        } else {
            $name = 'tao_' . substr(md5(microtime()), rand(0, 25), 7);
            $session->setAttribute(TokenStore::TOKEN_NAME, $name);
        }

        return $name;
    }
public function getTokenName ( ) { $ session = \ PHPSession :: singleton ( ) ; if ( $ session -> hasAttribute ( TokenStore :: TOKEN_NAME ) ) { $ name = $ session -> getAttribute ( TokenStore :: TOKEN_NAME ) ; } else { $ name = 'tao_' . substr ( md5 ( microtime ( ) ) , rand ( 0 , 25 ) , 7 ) ; $ session -> setAttribute ( TokenStore :: TOKEN_NAME , $ name ) ; } return $ name ; }
Gets this session's name for token
@return {String}
Gets this session s name for token