Suppression element qui ne semble pas intervenir dans la session

This commit is contained in:
Michael RICOIS 2012-04-13 15:49:43 +00:00
commit e8c6082d4c
3 changed files with 6 additions and 10 deletions

View File

@ -351,15 +351,6 @@ class UserController extends Zend_Controller_Action
$this->view->message.= $message."<br/>";
}
} else {
$timeout = $auth->getIdentity()->timeout;
//Ecrit un cookie persistant valide pendant le temps definit
Zend_Session::rememberMe($timeout);
$storage = new Zend_Auth_Storage_Session();
$sessionNamespace = new Zend_Session_Namespace($storage->getNamespace());
$sessionNamespace->setExpirationSeconds($timeout);
$auth->setStorage($storage);
$url = '';
if (Zend_Session::namespaceIsset('login')){
$session = new Zend_Session_Namespace('login');

View File

@ -48,7 +48,7 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
} else {
$storage = new Zend_Auth_Storage_Session();
$session = new Zend_Session_Namespace($storage->getNamespace());
$session->setExpirationSeconds(86400);
//$session->setExpirationSeconds(86400);
$auth->setStorage($storage);
}

View File

@ -3,6 +3,11 @@ class SessionEntreprise
{
protected $index = 'entrep';
/**
* @param string $siret
* @param int $id
* @param boolean $set
*/
public function __construct($siret, $id = 0, $set = false)
{
if ( !empty($siret) || !empty($id) ) {