X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=e3dd54b9fe9c90be0ead0a28b99fa3728cc30fbc;hb=6a6c26cd9a2ba2f3782116c69c017dd3c50c864e;hp=e39c6df94afaa927cfa644bb61ac03407c01c518;hpb=e237c587f30535a051593c11baeee82fd21edd4f;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index e39c6df..e3dd54b 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -643,6 +643,16 @@ class User { return (FALSE); } + + function reset() { + $tmp_sess = $this->sess; + $this->sess = ""; + step_unproxy($tmp_sess); + $this->name = ""; + while (array_pop($this->comm) != NULL); + $this->step = 0; + $this->the_end = FALSE; + } } // end class User @@ -818,12 +828,16 @@ class Room { if ($user_cur->stat == 'table' || $user_cur->stat == 'room') { log_auth($user_cur->sess, "Autologout session."); + $user_cur->reset(); + /* factorized with ->reset() $tmp_sess = $user_cur->sess; $user_cur->sess = ""; step_unproxy($tmp_sess); $user_cur->name = ""; + while (array_pop($user_cur->comm) != NULL); $user_cur->step = 0; $user_cur->the_end = FALSE; + */ log_rd2("AUTO LOGOUT."); if ($user_cur->subst == 'sitdown' || $user_cur->stat == 'table')