bug #9246 [Session] fixed wrong started state (tecbot)

This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #9246).

Discussion
----------

[Session] fixed wrong started state

Currently the session stays in the started mode after the call of  ```save()``` which will close the session. We found the issue in our custom SAPI which keeps the symfony stack initialized over multiple requests.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

d641cd6 [Session] fixed wrong started states
This commit is contained in:
Fabien Potencier 2013-10-10 17:50:53 +02:00
commit 1028c219b7
2 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,7 @@ class MockArraySessionStorage implements SessionStorageInterface
}
// nothing to do since we don't persist the session data
$this->closed = false;
$this->started = false;
}
/**

View File

@ -236,6 +236,7 @@ class NativeSessionStorage implements SessionStorageInterface
}
$this->closed = true;
$this->started = false;
}
/**