/**
* Start a session
*
* @return void
*
* @since 4.0.0
*/
public function start() : void
{
$session_name = $this->getName();
// Get the cookie object
$cookie = $this->input->cookie;
if (\is_null($cookie->get($session_name))) {
$session_clean = $this->input->getString($session_name);
if ($session_clean) {
$this->setId($session_clean);
$cookie->set($session_name, '', time() - 3600);
}
}
parent::start();
// Try loading data from the session
if (isset($_SESSION['joomla']) && !empty($_SESSION['joomla'])) {
$this->data = unserialize(base64_decode($_SESSION['joomla']));
}
}