在php下为多个服务器(服务)管理/存储数据库中的会话

I am working on a project under ZendFramework 1.11. For a moment, it's used native php sessions mechanism (Zend_Auth_Storage_Session).

But i have several problems, and decided that storing sessions in databases is best choise. These problems:

  • Several services (placed on different servers), that needs to identify user by one cookie. E.g. main website, photos service (that provides api for javascript to work with photos, etc)
  • Ability to see all sessions (with info about geolocation and about OS/Browser/last access date) for each account
  • Ability to close specified sessions
  • Ability to rename session cookie name

I found that we can use custom MySexy_Auth_Storage_Db class, but this way i need to generate session ids by myself, to setup cookies and to do many thigs (that could be unsecure in my implementation)

Maybe you could advise some ready-to-use solutions? Thank you!

P.S. I saw setSaveHandler solution, but it doesn't allow to have custom column in session table in database with account_id, for example, to easily manage all user's sessions