protected function generate_session_id() {
		$length = 40;

		require_once ABSPATH . 'wp-includes/class-phpass.php';
		$bytes = ( new \PasswordHash( 8, false ) )->get_random_bytes( $length * 2 );

		return substr( str_replace( [ '/', '+', '=' ], '', base64_encode( $bytes ) ), 0, $length );
	}