public function get()
{
if ($this->_useCookie) {
if (!$this->cookies->has($this->_name)) {
$this->cookies->set($this->_name, $this->_generateToken(), 0, '/', null);
}
return (string) $this->cookies->get($this->_name);
} else {
if (!$this->session->has($this->_name)) {
$this->session->set($this->_name, $this->_generateToken());
}
return (string) $this->session->get($this->_name);
}
}