src/Store.php
public function regenerate( $destroy = false ) {
		if ( $destroy ) {
			$this->handler->destroy( $this->get_id() );
		}

		$this->set_id( $this->generate_session_id() );

		return true;
	}
public function regenerate( $destroy = false ) {
		if ( $destroy ) {
			$this->handler->destroy( $this->get_id() );
		}

		$this->set_id( $this->generate_session_id() );

		return true;
	}
public function regenerate ( $ destroy = false ) { if ( $ destroy ) { $ this -> handler -> destroy ( $ this -> get_id ( ) ) ; } $ this -> set_id ( $ this -> generate_session_id ( ) ) ; return true ; }
Generate a new session identifier.

@param  bool $destroy Destroy current session.
@return bool
Generate a new session identifier .