Studyon Minte9.com
ZF 1.0




Session expiration



If a user has successfully logged into your website, use rememberMe() instead of regenerateId()

	$ns = new Zend_Session_Namespace('defaultNamespace');
		//$ns->setExpirationSeconds(10); // not working
	Zend_Session::rememberMe(10); // corect

Get Session expiration time in Zend Framework

	$session = new Zend_Session_Namespace( 'Zend_Auth' );
	$session->setExpirationSeconds( 60 );

	echo $timeLeftTillSessionExpires = $_SESSION['__ZF']['Zend_Auth']['ENT'] - time();


http://stackoverflow.com/questions/713552/zend-session-lost-when-using-regenerateid
http://stackoverflow.com/questions/5146217/get-session-expiration-time-in-zend-framework