If you can get this working, send us a patch and we'll do our best to incorporate it in the next release. The patch itself seems relatively straightforward, though areas of discussion might include: whether or not to add a new database table to the default omeka schema, and what specifically should be configurable about this, i.e. whether to only toggle it on/off in the config or to allow more complicated configurations.
What do you think?
Kris
> --
> You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
> To post to this group, send email to omek...@googlegroups.com.
> To unsubscribe from this group, send email to omeka-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/omeka-dev?hl=en.
>
We'd have to decide, I guess, whether to just have that table always exist for all Omeka installations, and just lie dormant for the majority that use the default save handler, or have some other process be required for people who want to use the database method.
We already (I believe), pass the application config when we set up Zend_Session, so some of this configuration may actually be possible now. Documentation for the config keys is buried somewhere in one of the Zend_Session manual pages. You may even be able to simply write a thin extension of Zend_Session_SaveHandler_DbTable that "knows" the table name and db options from the rest of Omeka. This way, I think you could then just specify the name of the session handler class in the config.ini.
Of course, we can also just, as it seems you're suggesting, have two (or more) pre-defined handler options, and a config setting that does the appropriate Zend_Session setup. While the above may be more general (if it actually works), this may be the preferable option, given the limited scope of options as far as Omeka/PHP session handlers go.
John
I'm automatically inclined to stick with the simplest default solution for sessions in PHP, i.e. the filesystem, but as most know by now, sometimes the defaults for PHP are just awful and insecure.
What do others think?
Kris
We do recommend Dreamhost, Bluehost and Webfaction, so there would likely be more on those hosts.
Kris