Example #1
0
 /**
  * Set additional session options
  *
  * @param   array  $options  List of parameter
  *
  * @return  boolean  True on success
  *
  * @since   11.1
  */
 protected function _setOptions(array $options)
 {
     // Set name
     if (isset($options['name'])) {
         $this->_handler->setName(md5($options['name']));
     }
     // Set id
     if (isset($options['id'])) {
         $this->_handler->setId($options['id']);
     }
     // Set expire time
     if (isset($options['expire'])) {
         $this->_expire = $options['expire'];
     }
     // Get security options
     if (isset($options['security'])) {
         $this->_security = explode(',', $options['security']);
     }
     // Sync the session maxlifetime
     ini_set('session.gc_maxlifetime', $this->_expire);
     return true;
 }