I have a parent Class that does this in one of it's methods...

        $session = &Auth::_importGlobalVariable("session");
        $session[$this->_sessionName]['registered'] = true;

I would like to "hook" into this in on eof my methods in a child class

I thought I could do this...

[538]   $session = Auth::_importGlobalVariable("session");
[539]   $session[Auth::_sessionName]['registered'] = true;

But I get this error:

    Parse error: parse error, unexpected ']', expecting '(' in
    mypath\AuthUser.php on line 539

OK, I guessed wrong (again).

This is how PEAR::Auth deals with inserting its class vars into a session
and I want to piggyback on that. No need to roll my own, I think.

Can someone show me the errors of my ways?

Thanks

Walter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to