views:

50

answers:

1

hey all I'm using the Zend_Session_SaveHandler_DbTable Session handler and I was curious if anyone knows how to best add a custom field to the table that it stores the session data in? for example I'd like to be able to log the username of the person in the sessions table.

Anyone know if that's possible with the Zend_Session_SaveHandler_DbTable?

here's my set up code now..

$config = array(
  'name'           => 'session',
  'primary'        => 'id',
  'modifiedColumn' => 'modified',
  'dataColumn'     => 'data',
  'lifetimeColumn' => 'lifetime'

); Zend_Session::setSaveHandler(new Zend_Session_SaveHandler_DbTable($config)); Zend_Session::start();

A: 

I would also like to know if this is possible through the provided functionality, or customization is needed?

Rendeto