コード例 #1
0
ファイル: file.php プロジェクト: rahulsiwal/younity
 function SESessionStorageFile($options = array())
 {
     if (isset($options['root'])) {
         $this->_save_path = realpath($options['root']);
     }
     if (!$this->test()) {
         die("Unable to initialize file-based session storage");
     }
     parent::SESessionStorage($options);
 }
コード例 #2
0
ファイル: memcache.php プロジェクト: rahulsiwal/younity
 function SESessionStorageMemcache($options = array())
 {
     if (!$this->test()) {
         die("The memcache extension isn't available");
     }
     // Default server connection
     if (empty($options['servers'])) {
         $options['servers'] = array(array('host' => 'localhost', 'port' => '11211'));
     }
     parent::SESessionStorage($options);
     $this->_compress = isset($options['compress']) ? $options['compress'] : FALSE;
     $this->_persistent = isset($options['persistent']) ? $options['persistent'] : FALSE;
     $this->_servers = isset($options['servers']) ? $options['servers'] : array();
 }