fuel/fuel/core/classes/session/driver.php
public function rotate($force = true)
	{
		// do we have a session?
		if ( ! empty($this->keys))
		{
			// existing session. need to rotate the session id?
			if ($force or ($this->config['rotation_time'] and $this->keys['created'] + $this->config['rotation_time'] <= $this->time->get_timestamp()))
			{
				// generate a new session id, and update the create timestamp
				$this->keys['previous_id']	= $this->keys['session_id'];
				$this->keys['session_id']	= $this->_new_session_id();
				$this->keys['created'] 		= $this->time->get_timestamp();
				$this->keys['updated']		= $this->keys['created'];
			}
		}

		return $this;
	}
public function rotate($force = true)
	{
		// do we have a session?
		if ( ! empty($this->keys))
		{
			// existing session. need to rotate the session id?
			if ($force or ($this->config['rotation_time'] and $this->keys['created'] + $this->config['rotation_time'] <= $this->time->get_timestamp()))
			{
				// generate a new session id, and update the create timestamp
				$this->keys['previous_id']	= $this->keys['session_id'];
				$this->keys['session_id']	= $this->_new_session_id();
				$this->keys['created'] 		= $this->time->get_timestamp();
				$this->keys['updated']		= $this->keys['created'];
			}
		}

		return $this;
	}
public function rotate ( $ force = true ) { // do we have a session? if ( ! empty ( $ this -> keys ) ) { // existing session. need to rotate the session id? if ( $ force or ( $ this -> config [ 'rotation_time' ] and $ this -> keys [ 'created' ] + $ this -> config [ 'rotation_time' ] <= $ this -> time -> get_timestamp ( ) ) ) { // generate a new session id, and update the create timestamp $ this -> keys [ 'previous_id' ] = $ this -> keys [ 'session_id' ] ; $ this -> keys [ 'session_id' ] = $ this -> _new_session_id ( ) ; $ this -> keys [ 'created' ] = $ this -> time -> get_timestamp ( ) ; $ this -> keys [ 'updated' ] = $ this -> keys [ 'created' ] ; } } return $ this ; }
force a session_id rotation

@access	public
@param	boolean, if true, force a session id rotation
@return  Fuel\Core\Session_Driver
force a session_id rotation