Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Controller_Plugin_SessionExpire Component Proposal

Proposed Component Name Zend_Controller_Plugin_SessionExpire
Developer Notes
Proposers Justin Hendrickson
Zend Liaison TBD
Revision 1.0 - 17 January 2011: Initial Draft. (wiki revision: 8)

Table of Contents

1. Overview

Zend_Controller_Plugin_SessionExpire is a Zend_Controller plugin that provides userland control of session expiration by tracking a users last access time and redirecting to a custom module/controller/action if a timeout is exceeded.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will forward requests to a specified action if the session has expired.
  • This component will not modify the session.gc_maxlifetime or session.cookie_lifetime.
  • This component will include a Zend_Application resource class.
  • This component will not destroy the session (the session expire handler will be responsible for that decision).

4. Dependencies on Other Framework Components

  • Zend_Application_Resource_ResourceAbstract
  • Zend_Controller_Plugin_Abstract
  • Zend_Date
  • Zend_Session_Namespace

5. Theory of Operation

This component takes a Zend_Config or an array for configuration. The expired session module/controller/action and expiration timeout can be configured.

A Zend_Application resource class is also available which includes the ability to set the stack index to register the plugin at.

6. Milestones / Tasks

  • Milestone 1: Working prototype checked into the incubator supporting all use cases.
  • Milestone 2: Unit tests exist, work, and are checked into SVN.
  • Milestone 3: Initial documentation exists.

7. Class Index

  • Zend_Application_Resource_SessionExpire
  • Zend_Controller_Plugin_SessionExpire

8. Use Cases


Default settings


Customized expired session module/controller/action and timeout.


Custom session namespace.


Custom session namespace object.

9. Class Skeletons



Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Feb 08, 2011

    <p>I can't find any announcement to the community about this. Also, it seems this proposal only exists for a few days?</p>

    <p>If you think this proposal is ready, I would recommend to move it to 'ready for review', and announce it to the community. This would allow everybody to take a look at it, and give his/her opinion. If you have any questions you can always contact the contributors mailinglist, or the CR-Team.</p>

    1. Apr 06, 2011

      <p>I attempted to send out an announcement to zf-contributors on several occasions, but it never seemed to go through for whatever reason. I was only able to announce it on IRC and after 5 days or so of no responses, I moved it to ready for review, hoping someone would see it. Unfortunately, no one really noticed it and I forgot about it until just now. I've moved it back to ready for review.</p>