diff options
author | Brad Jorsch <bjorsch@wikimedia.org> | 2016-01-29 18:02:11 -0500 |
---|---|---|
committer | BryanDavis <bdavis@wikimedia.org> | 2016-01-30 00:26:03 +0000 |
commit | fcdd643a46d87b677f6cdcc3ba9440e1472d8df7 (patch) | |
tree | 4e81f677b09ca24c96f0a21c4d7842da05cd6341 /tests/phpunit/includes/session/PHPSessionHandlerTest.php | |
parent | 982869d6b0c145d7b53aad255efaf0702c434e1f (diff) | |
download | mediawikicore-fcdd643a46d87b677f6cdcc3ba9440e1472d8df7.tar.gz mediawikicore-fcdd643a46d87b677f6cdcc3ba9440e1472d8df7.zip |
SessionManager: Don't save non-persisted sessions to backend storage
This introduces an in-process cache (using a HashBagOStuff) for session
data, and only saves to the external cache when the session is
persisted.
Bug: T125267
Change-Id: Ie161e0f7522cd68515b060ad8cf8c151b7198b0b
Diffstat (limited to 'tests/phpunit/includes/session/PHPSessionHandlerTest.php')
-rw-r--r-- | tests/phpunit/includes/session/PHPSessionHandlerTest.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/phpunit/includes/session/PHPSessionHandlerTest.php b/tests/phpunit/includes/session/PHPSessionHandlerTest.php index 125e1b664e09..1c54a20af3ee 100644 --- a/tests/phpunit/includes/session/PHPSessionHandlerTest.php +++ b/tests/phpunit/includes/session/PHPSessionHandlerTest.php @@ -172,14 +172,6 @@ class PHPSessionHandlerTest extends MediaWikiTestCase { $this->assertSame( $expect, $_SESSION ); } - // Test expiry - session_write_close(); - ini_set( 'session.gc_divisor', 1 ); - ini_set( 'session.gc_probability', 1 ); - sleep( 3 ); - session_start(); - $this->assertSame( array(), $_SESSION ); - // Re-fill the session, then test that session_destroy() works. $_SESSION['AuthenticationSessionTest'] = $rand; session_write_close(); |