Permalink
Browse files

Stay 100% BC for 2.7

  • Loading branch information...
dereuromark committed Jan 4, 2015
1 parent d848c5f commit 394da88d234ea66fa53c08f1b7979cc4457961c1
@@ -472,10 +472,10 @@ public static function destroy() {
*
* Optionally also clears the session id and renews the session.
*
* @param bool $renew If the session should also be renewed. Defaults to false.
* @param bool $renew If the session should also be renewed. Defaults to true.
* @return void
*/
public static function clear($renew = false) {
public static function clear($renew = true) {
$_SESSION = null;
if ($renew) {
self::$id = null;
@@ -410,7 +410,7 @@ public function testDelete() {
*/
public function testClear() {
$this->assertTrue(TestCakeSession::write('Delete.me', 'Clearing out'));
TestCakeSession::clear();
TestCakeSession::clear(false);
$this->assertFalse(TestCakeSession::check('Delete.me'));
$this->assertFalse(TestCakeSession::check('Delete'));
}

0 comments on commit 394da88

Please sign in to comment.