I have 2 areas that need session management, with 2 different expirations:
- Administrative Area - 20 minutes
- Reservation Area - 3 minutes
Using Zend_Session
, how can I manage both for the same user?
It is important to note that the Reservation Area behaves much like Ticketmaster, where maintaining reservation accuracy down to the second is crucial.
My current implementation utilizes the Zend_Session_SaveHandler_DbTable
and I would like to stick with that, if possible.
I am storing the Session_ID
from the main Session table on the Reservation table to indicate reservations. This works out well, because it allows me to use garbage collection to clean up abandoned sessions (I have a cron triggering garbage collection every minute).
My problem with this implementation is that I don't know how to manage the Administrative Area's session, given the time difference.