What is the Session object member in Zend_Auth_Storage_Session?

3 messages Options
Embed this post
Permalink
ronnystalker

What is the Session object member in Zend_Auth_Storage_Session?

Reply Threaded More More options
Print post
Permalink
Hi
I am just looking into the code of Zend_Auth_Storage_Session for ideas on how i can extend it to customise my own class.

I see there is a property called $_member :

    /**
     * Session object member
     *
     * @var mixed
     */
    protected $_member;

The Doc description is a little bit vague.

Is this referring to a member in the sense of a 'user' who is a member of the site?
OR
Is this referring to a member in the sense of the class member/property name of the variable that holds the session object?

I will probably discover the answer soon enough through more research.

However, it might be nice to explicitly have the answer to this question available 'on the web' somewhere to make code analysis quicker for those who are following my path.

Any way - i hope to reply to this when i find out more about this.


 






Ralph Schindler-2

Re: What is the Session object member in Zend_Auth_Storage_Session?

Reply Threaded More More options
Print post
Permalink
Hi,

$_member is the actual variable name that will be stored inside the
Zend_Session_Namespace object.

Think of it like this, if the namespace is called by 'Zend_Auth', the
default, and the member is called by 'storage', by default; it would
effectively map to this in memory:

$_SESSION['Zend_Auth']['storage'] = $valueOfIdentityHere;

Hope this helps,
Ralph

ronnystalker wrote:

> Hi
> I am just looking into the code of Zend_Auth_Storage_Session for ideas on
> how i can extend it to customise my own class.
>
> I see there is a property called $_member :
>
>     /**
>      * Session object member
>      *
>      * @var mixed
>      */
>     protected $_member;
>
> The Doc description is a little bit vague.
>
> Is this referring to a member in the sense of a 'user' who is a member of
> the site?
> OR
> Is this referring to a member in the sense of the class member/property name
> of the variable that holds the session object?
>
> I will probably discover the answer soon enough through more research.
>
> However, it might be nice to explicitly have the answer to this question
> available 'on the web' somewhere to make code analysis quicker for those who
> are following my path.
>
> Any way - i hope to reply to this when i find out more about this.
>
>
>  
>
>
>
>
>
>
>
ronnystalker

Re: What is the Session object member in Zend_Auth_Storage_Session?

Reply Threaded More More options
Print post
Permalink
In reply to this post by ronnystalker
yes. very helpful thanks.

ronnystalker wrote:
Hi
I am just looking into the code of Zend_Auth_Storage_Session for ideas on how i can extend it to customise my own class.

I see there is a property called $_member :

    /**
     * Session object member
     *
     * @var mixed
     */
    protected $_member;

The Doc description is a little bit vague.

Is this referring to a member in the sense of a 'user' who is a member of the site?
OR
Is this referring to a member in the sense of the class member/property name of the variable that holds the session object?

I will probably discover the answer soon enough through more research.

However, it might be nice to explicitly have the answer to this question available 'on the web' somewhere to make code analysis quicker for those who are following my path.

Any way - i hope to reply to this when i find out more about this.