Ejemplo n.º 1
0
 public static function init($url)
 {
     // get setting from config.php
     $storageType = SJB_System::getSystemSettings('SESSION_STORAGE');
     if ($storageType != 'files') {
         $sessionStorage = new SessionStorage();
         session_set_save_handler(array($sessionStorage, 'open'), array($sessionStorage, 'close'), array($sessionStorage, 'read'), array($sessionStorage, 'write'), array($sessionStorage, 'destroy'), array($sessionStorage, 'gc'));
     }
     $path = SJB_Session::getSessionCookiePath();
     SJB_WrappedFunctions::ini_set('session.cookie_path', $path);
     Zend_Session::start();
     self::identificationUserSign();
 }
Ejemplo n.º 2
0
 public static function init($url)
 {
     $sessionStorage = new PHPBBSessionStorage();
     session_set_save_handler(array($sessionStorage, 'open'), array($sessionStorage, 'close'), array($sessionStorage, 'read'), array($sessionStorage, 'write'), array($sessionStorage, 'destroy'), array($sessionStorage, 'gc'));
     $path = SJB_Session::getSessionCookiePath($url);
     SJB_WrappedFunctions::ini_set("session.cookie_path", $path);
     SJB_WrappedFunctions::session_start();
 }