Exemple #1
0
 /**
  * Rotates the session id, and reset the rotation timer if needed
  */
 public function rotate()
 {
     // update the session id rotation timer
     if ($this->rotationInterval) {
         $this->rotationTimer = time() + $this->rotationInterval;
     }
     // regenerate the session id
     $this->driver->regenerate($this);
 }