Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Always create user agent hash in session

  • Loading branch information...
commit 7a1a3e593d06d458595065142a19acc2a57d5b18 1 parent e03d3df
@dereuromark dereuromark authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Model/Datasource/CakeSession.php
View
2  lib/Cake/Model/Datasource/CakeSession.php
@@ -132,7 +132,7 @@ public static function init($base = null) {
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);
Please sign in to comment.
Something went wrong with that request. Please try again.