Example #1
0
File: Http.php Project: pury/Around
 public static function init()
 {
     self::$sessionName = ini_get('session.name');
     self::$sessionPath = session_save_path();
     if (!self::$sessionPath) {
         self::$sessionPath = sys_get_temp_dir();
     }
     @\session_start();
 }
Example #2
0
 public static function init()
 {
     self::$sessionName = ini_get('session.name');
     self::$sessionPath = session_save_path();
     if (!self::$sessionPath || strpos(self::$sessionPath, 'tcp://') === 0) {
         self::$sessionPath = sys_get_temp_dir();
     }
     if ($gc_probability = ini_get('session.gc_probability')) {
         self::$sessionGcProbability = $gc_probability;
     }
     if ($gc_divisor = ini_get('session.gc_divisor')) {
         self::$sessionGcDivisor = $gc_divisor;
     }
     if ($gc_max_life_time = ini_get('session.gc_maxlifetime')) {
         self::$sessionGcMaxLifeTime = $gc_max_life_time;
     }
     @\session_start();
 }