Expire the Zend session if the user remains idle for 10 minutes
问题 I am new to zend and I want to ask how can I expire a user's session namespace's particular key if a user remains idle for 10 minutes. I have a namespace defined in zend session as $session = new Zend_Session_Namespace('loginNamespace'); now when the user logs in I set the key loggedIn = 1 in session namespace. Now I want to expire not the whole session if the user remains idle but only that key. how can I do that? 回答1: From the documentation, you can expire a key using: $session-