protected function __construct($_name = 'a1', $_config)
{
$this->_name = $_name;
$this->_config = $_config;
if (isset($this->_config['cookie'])) {
if (!isset($this->_config['cookie']['key'])) {
$this->_config['cookie']['key'] = 'a1_{name}_autologin';
}
$this->_config['cookie']['key'] = strtr($this->_config['cookie']['key'], array('{name}' => $this->_name));
}
if (!isset($this->_config['session']['key'])) {
$this->_config['session']['key'] = 'a1_' . $this->_name;
}
}