Zend Framework - adding a custom field to the session handler? -
Hey all I am using the Zend_SessionHeadler_DbTable session handler and I was curious if someone knows how to add a custom area to the best that the table in which he stores the session data? For example, I want to be able to log the person's username in the session table.
Anyone know what is possible with Zend_Session_SaveHandler_DbTable?
Now my set up code is
$ config = array ('name' = & gt; 'session', 'primary' = & gt; 'id', 'Modified column' = & gt; 'Modified', 'Data columns' = & gt; 'data', 'lifetime column' = & gt; 'lifetime'
); Zend_Session :: setSaveHandler (New Zend_Session_SaveHandler_DbTable ($ config)); Zend_Session :: start ();
I think this is possible, I'm searching for the same thing, but if you see that I do not have anything I can see,
I think the way to do this is to create another table, as a session ID, in a column and in any other column