@@ 96-103 (lines=8) @@ | ||
93 | $session = $request->getSession(); |
|
94 | ||
95 | // Check that the ip matches |
|
96 | if ($this->ipCheck && $session->has('kuma_ip') && $session->get('kuma_ip') != $this->getIp($request)) { |
|
97 | $this->logger->error(sprintf( |
|
98 | "Session ip '%s' does not match with request ip '%s', invalidating the current session", |
|
99 | $session->get('kuma_ip'), |
|
100 | $this->getIp($request) |
|
101 | )); |
|
102 | $this->invalidateSession($session, $request); |
|
103 | } |
|
104 | ||
105 | // Check that the user agent matches |
|
106 | if ($this->userAgentCheck && $session->has('kuma_ua') && $session->get('kuma_ua') != $this->getUserAgent($request)) { |
|
@@ 106-113 (lines=8) @@ | ||
103 | } |
|
104 | ||
105 | // Check that the user agent matches |
|
106 | if ($this->userAgentCheck && $session->has('kuma_ua') && $session->get('kuma_ua') != $this->getUserAgent($request)) { |
|
107 | $this->logger->error(sprintf( |
|
108 | "Session user agent '%s' does not match with request user agent '%s', invalidating the current session", |
|
109 | $session->get('kuma_ua'), |
|
110 | $this->getUserAgent($request) |
|
111 | )); |
|
112 | $this->invalidateSession($session, $request); |
|
113 | } |
|
114 | } |
|
115 | } |
|
116 |