Example #1
0
 /**
  * Start a session.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function start()
 {
     if ($this->getState() === 'active') {
         return;
     }
     $this->_start();
     $this->setState('active');
     // Initialise the session
     $this->_setCounter();
     $this->_setTimers();
     // Perform security checks
     $this->_validate();
     if ($this->dispatcher instanceof DispatcherInterface) {
         $this->dispatcher->triggerEvent('onAfterSessionStart');
     }
 }