Merge branch '4.0' into 4.1
* 4.0: migrating session for UsernamePasswordJsonAuthenticationListener
This commit is contained in:
commit
a4bb5a8bdb
@ -637,7 +637,9 @@ class PdoSessionHandler extends AbstractSessionHandler
|
|||||||
throw new \RuntimeException('Failed to read session: INSERT reported a duplicate id but next SELECT did not return any data.');
|
throw new \RuntimeException('Failed to read session: INSERT reported a duplicate id but next SELECT did not return any data.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self::LOCK_TRANSACTIONAL === $this->lockMode && 'sqlite' !== $this->driver) {
|
if (!ini_get('session.use_strict_mode') && self::LOCK_TRANSACTIONAL === $this->lockMode && 'sqlite' !== $this->driver) {
|
||||||
|
// In strict mode, session fixation is not possible: new sessions always start with a unique
|
||||||
|
// random id, so that concurrency is not possible and this code path can be skipped.
|
||||||
// Exclusive-reading of non-existent rows does not block, so we need to do an insert to block
|
// Exclusive-reading of non-existent rows does not block, so we need to do an insert to block
|
||||||
// until other connections to the session are committed.
|
// until other connections to the session are committed.
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user