I'm trying to create a session handler that uses Memcached since I
haven't seen an official Zend_Session_SaveHandler_Memcached. I'm also
trying to intelligently do it so I don't have problems with the cache
data expiring before it should logging the user out. That would create
a major annoyance.

The problem I'm having is where to set the lifetime of the cache data.
Should it be set within the frontendOptions of the cache object or
should it be set when the data is saved through the 'save' function.
Should the cache data be touched to extend the expiration time with
each access of the cache data so that the data only expires when the
user truly leaves the site then and only then should the cache expire
when the time for it runs out? I know Zend_Session::rememberMe() only
changes the time the cookie expires and won't do a thing about when
the cache expires (or am I wrong?). I just don't want the cache data
hanging around any more than it should taking up memory.

Everything else seems pretty simple. That's the only thing I can't
seem to get my head wrapped around. Any help would be appreciated.

Sincerely,

Jamie

Reply via email to