@@ 87-94 (lines=8) @@ | ||
84 | $session = $request->getSession(); |
|
85 | ||
86 | // Check that the ip matches |
|
87 | if ($this->ipCheck && $session->has('kuma_ip') && $session->get('kuma_ip') != $this->getIp($request)) { |
|
88 | $this->logger->error(sprintf( |
|
89 | "Session ip '%s' does not match with request ip '%s', invalidating the current session", |
|
90 | $session->get('kuma_ip'), |
|
91 | $this->getIp($request) |
|
92 | )); |
|
93 | $this->invalidateSession($session, $request); |
|
94 | } |
|
95 | ||
96 | // Check that the user agent matches |
|
97 | if ($this->userAgentCheck && $session->has('kuma_ua') && $session->get('kuma_ua') != $this->getUserAgent($request)) { |
|
@@ 97-104 (lines=8) @@ | ||
94 | } |
|
95 | ||
96 | // Check that the user agent matches |
|
97 | if ($this->userAgentCheck && $session->has('kuma_ua') && $session->get('kuma_ua') != $this->getUserAgent($request)) { |
|
98 | $this->logger->error(sprintf( |
|
99 | "Session user agent '%s' does not match with request user agent '%s', invalidating the current session", |
|
100 | $session->get('kuma_ua'), |
|
101 | $this->getUserAgent($request) |
|
102 | )); |
|
103 | $this->invalidateSession($session, $request); |
|
104 | } |
|
105 | } |
|
106 | } |
|
107 |