public function prepareSession(NativeSession $session, Injector $injector)
    {
        // It seems impossible to test this, since it has to be run in a web
        // server to really be useful and PHPUnit will prevent the session
        // headers working properly. One possible way to test it is by using
        // runkit to mock the [native function][1], but that seems extreme and
        // requires installation of a PECL extension.
        //
        // [1]: https://github.com/tcz/phpunit-mockfunction
        //
        // @codeCoverageIgnoreStart
        if ($this->canSessionStart() && $this->isCli() === false) {
            $this->startSession();
        }
        // @codeCoverageIgnoreEnd
    }