Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-310

MongoDB session handler fails to destroy the session when not started

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: laravel-5.2.0
    • Component/s: Laravel
    • None
    • None
    • PHP Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Session name cannot be empty, did you forget to call "parent::open()" in "Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler"?.

      The Laravel-MongoDB package currently integrates the Symfony MongoDB session handler. In Symfony, the session cookies are managed by the handler. It asserts the session is started before being destoyed.

      https://github.com/symfony/symfony/blob/79ea49c772ce4b39f414cde5648ad347c3bbcfd7/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php#L89-L93

      But Laravel doesn't always open the session.

      Solution: Implement a Session handler for mongodb in the Laravel-MongoDB package (1 class + tests)

            Assignee:
            Unassigned Unassigned
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None