Always create user agent hash in session

This commit is contained in:
euromark 2013-07-18 12:02:42 +02:00
parent e03d3df0fe
commit 7a1a3e593d

View file

@ -132,7 +132,7 @@ class CakeSession {
self::$time = time();
$checkAgent = Configure::read('Session.checkAgent');
if (($checkAgent === true || $checkAgent === null) && env('HTTP_USER_AGENT')) {
if (env('HTTP_USER_AGENT')) {
self::$_userAgent = md5(env('HTTP_USER_AGENT') . Configure::read('Security.salt'));
}
self::_setPath($base);