/** * Constructor * * @param KObjectConfig $config An optional ObjectConfig object with configuration options * @return KUserSessionHandlerFile */ public function __construct(KObjectConfig $config) { parent::__construct($config); if ($config->save_path && !is_dir($config->save_path)) { mkdir($config->save_path, 0755, true); } ini_set('session.save_handler', 'files'); }
/** * Constructor * * @param KObjectConfig $config An optional ObjectConfig object with configuration options * @throws InvalidArgumentException * @return KUserSessionHandlerDatabase */ public function __construct(KObjectConfig $config) { parent::__construct($config); if (is_null($config->table)) { throw new InvalidArgumentException('table option is required'); } $this->_table = $config->table; }