/** * Start a session. * * @return void * * @since 1.0 */ public function start() { if ($this->state === 'active') { return; } $this->_start(); $this->state = 'active'; // Initialise the session $this->_setCounter(); $this->_setTimers(); // Perform security checks $this->_validate(); if ($this->dispatcher instanceof Dispatcher) { $this->dispatcher->trigger('onAfterSessionStart'); } }