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); }
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(); }