Tiger_Model_Session
@api· extendsZend_Db_Table_Abstract
Session — gateway for the DB session store (see migration 0010).
A system table, so this extends Zend_Db_Table_Abstract directly (NOT Tiger_Model_Table — session_id is the PHP session id, not a UUID, and there are no soft-delete/actor columns). Used by the save handler's GC and by admin "your sessions" / force-logout flows.
Methods
gc()
gc()
Delete sessions whose (now - modified) > lifetime. Returns rows removed.
Returns int — the number of expired sessions removed
getByUserId()
getByUserId($userId)
A user's sessions, newest first (for a "signed-in devices" view).
$userIdstring— the user id
Returns Zend_Db_Table_Rowset_Abstract — the user's sessions, newest first
deleteByUserId()
deleteByUserId($userId)
Force-logout: delete all of a user's sessions.
$userIdstring— the user id
Returns int — the number of sessions deleted