/**
  * Override to return our own Store/Encrypted store
  */
 protected function buildSession($handler)
 {
     if ($handler instanceof NullSessionHandler) {
         return parent::buildSession($handler);
     }
     if ($this->app['config']['session.encrypt']) {
         return new EncryptedStore($this->app['config']['session.cookie'], $handler, $this->app['encrypter']);
     } else {
         return new Store($this->app['config']['session.cookie'], $handler);
     }
 }