SessionManager: Save 'persisted' flag in session metadata
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 27 Jan 2016 22:13:35 +0000 (17:13 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 27 Jan 2016 22:13:35 +0000 (17:13 -0500)
commit296ccfd4a9a6ad3ae412db7e2408c923aaa61f64
tree2e93040c5bb0759738d8c1f0de4f8062b2abbe7a
parent5346065e0222004cd4293ad33ae331280ce86e2b
SessionManager: Save 'persisted' flag in session metadata

This allows SessionManager::getSessionById()->isPersisted() to be
reliably set. Otherwise it depends on whether the SessionBackend is
still loaded or not.

Change-Id: I17733559ac5d8fff13881664333f61d36f610b6d
includes/session/SessionBackend.php
includes/session/SessionManager.php
tests/phpunit/includes/session/SessionManagerTest.php