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?
From the documentation, you can expire a key using:
So, how can you play with that? This way: