Example #1
0
 /**
  * Sécurisation de la session
  */
 public function secure()
 {
     //ini_set("session.cookie_lifetime",3600);
     $session = new http_session();
     $sessionUtils = new admin_model_sessionUtils();
     $session->start('mc_adminlang');
     $compareSessionId = $sessionUtils->compareSessionId();
     if (!isset($_SESSION["email_admin"]) || empty($_SESSION['email_admin'])) {
         if (!isset($this->email_admin)) {
             admin_model_redirect::login(true);
         }
     }
     /*elseif(!$compareSessionId['id_admin_session']){
           admin_model_redirect::login(true);
       }*/
 }
Example #2
0
 /**
  * Initialisation de la création de session de langue
  */
 public function run($debug = false)
 {
     $session = new http_session();
     $session->start('lang');
     if ($debug) {
         $session->debug();
     }
     self::initLang();
     self::setTimeLocal();
 }