mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Merge pull request #1433 from dereuromark/2.4-user-agent-session
Always create user agent hash in session
This commit is contained in:
commit
5769217ef9
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class CakeSession {
|
||||||
self::$time = time();
|
self::$time = time();
|
||||||
|
|
||||||
$checkAgent = Configure::read('Session.checkAgent');
|
$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::$_userAgent = md5(env('HTTP_USER_AGENT') . Configure::read('Security.salt'));
|
||||||
}
|
}
|
||||||
self::_setPath($base);
|
self::_setPath($base);
|
||||||
|
|
Loading…
Add table
Reference in a new issue