X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=e41c2520a03c1deb01538846f0a415fdf888fc37;hb=710c1cef0849b8a881479c9e066fb74bd24781f8;hp=3d99623f0feb6e01833c80eafe10224df4e3cd51;hpb=b830b3e5838d9f70c15e34696f3fb26ab730d5f4;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 3d99623..e41c252 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -875,6 +875,8 @@ class User { { // error_log("User::load_data BEGIN", 0); + log_main("load_data: id [".$id."] sess [".($sess == FALSE ? "FALSE" : $sess)."] "); + $doexit = FALSE; do { if (($tok = @ftok(FTOK_PATH."/user".$id, "B")) == -1) { @@ -893,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));