title: October CMS sessions are breaking?
body: <p>I've been trying to create a middleware in a plugin in October CMS, that takes from the input a value and stores it in session to be periodically displayed in a template.</p>
  
  <p>Middleware function:</p>
  
  <pre><code>  public function handle($request, Closure $next)
    {
        session()-&gt;put('foo', input('foo'));
        logger('StartSession: foo: ', [session('foo')]);
        return $next($request);
    }
  </code></pre>
  
  <p>Registering middleware in plugin.php</p>
  
  <pre><code>    public function register()
      {
      $this-&gt;app-&gt;make('Illuminate\Contracts\Http\Kernel')-&gt;prependMiddleware('October\Demo\Middleware\StartSession');
      }
  </code></pre>
  
  <p>Method in plugin for accessing session</p>
  
  <pre><code>    public function registerMarkupTags()
      {
         return [
             'functions' =&gt; [
                 'session' =&gt; [Session::class, 'get']
              ]
         ];
      }
  </code></pre>
  
  <p>Usage in demo theme</p>
  
  <pre><code>&lt;h1&gt;{{ session('foo') }}&lt;/h1&gt;
  </code></pre>
  
  <p>This works on the first run. If I put foo as query string foo is displayed on the page. However on a second run if I changed the query string to bar, foo persists on the page.</p>
  
  <p>Here is an example of the issue in a fresh installed October Instance</p>
  
  <p><a href="https://github.com/reed-josh/october-session-issue" rel="nofollow noreferrer">https://github.com/reed-josh/october-session-issue</a></p>