From: Matteo Nastasi (mop) Date: Sun, 20 Mar 2011 17:33:35 +0000 (+0100) Subject: add check on new argument sess where if it isn't equal to FALSE is compared with... X-Git-Tag: 3.4.4~10 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;ds=inline;h=710c1cef0849b8a881479c9e066fb74bd24781f8;hp=f8d98f354ae51f7223e08e8a3dfaa2b2b466c8dc;p=brisk.git add check on new argument sess where if it isn't equal to FALSE is compared with User session field and return FALSE if differ --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 7460da5..e41c252 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -895,7 +895,11 @@ class User { if ($shm = shm_attach($tok, $shm_sz)) { $user = @shm_get_var($shm, $tok); - log_only("bri == ".($user == FALSE ? "FALSE" : "TRUE")." bri === ".($user === FALSE ? "FALSE" : "TRUE")." bri isset ".(isset($user) ? "TRUE" : "FALSE")); + if ($sess != FALSE && $user->sess != $sess) { + $doexit = TRUE; + break; + } + log_only("user == ".($user == FALSE ? "FALSE" : "TRUE")." user === ".($user === FALSE ? "FALSE" : "TRUE")." user isset ".(isset($user) ? "TRUE" : "FALSE")); if (isset($user)) log_only("bri count ".count($user));