RequestContext::exportSession() should only export persisted session IDs
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 27 Jan 2016 22:14:21 +0000 (17:14 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 27 Jan 2016 22:14:21 +0000 (17:14 -0500)
commit7c4bd85d2152fd9fa975ea0fb5ffb1a0b804f99b
tree1c08825264cb4b699ba3d5246e95d950aa1953f2
parent296ccfd4a9a6ad3ae412db7e2408c923aaa61f64
RequestContext::exportSession() should only export persisted session IDs

If a non-persisted session ID is exported, then when the session is
reloaded by RequestContext::importScopedSession() the session_start()
will wind up persisting it.

Bug: T124971
Change-Id: If03d130acca6bb98029cfa3cc520cd46f42ff15e
includes/context/RequestContext.php
tests/phpunit/includes/context/RequestContextTest.php