working on cookie fingerprinting.

This commit is contained in:
Taylor Otwell
2012-09-25 08:40:29 -05:00
parent 07bec5c043
commit 110966bd6a
4 changed files with 45 additions and 7 deletions

View File

@@ -372,7 +372,7 @@ class SessionTest extends PHPUnit_Framework_TestCase {
$cookie = Cookie::$jar[Config::get('session.cookie')];
$this->assertEquals('foo', $cookie['value']);
$this->assertEquals(sha1('foo'.Config::get('application.key')).'+foo', $cookie['value']);
// Shouldn't be able to test this cause session.lifetime store number of minutes
// while cookie expiration store timestamp when it going to expired.
// $this->assertEquals(Config::get('session.lifetime'), $cookie['expiration']);