dev: step back to understand what is happening
[brisk.git] / web / Obj / brisk.phh
index 152f8f7..e3a0c36 100644 (file)
@@ -2786,15 +2786,16 @@ class Brisk
 
           do {
               if (!isset($cookie['sess'])
-                  || (($user = $this->get_user($cookie['sess'], $idx)) == FALSE)
-              ) {
-                  //  || $user->page_id != $get['page_id']) {
+                  || (($user = $this->get_user($cookie['sess'], $idx)) == FALSE));
+               // || (($user = $this->get_user($cookie['sess'], $idx)) == FALSE)
+               // || $user->page_id != $get['page_id']) {
 
                   $content = "";
                   // if ($user->page_id != $get['page_id']) {
                   //     $content .= "OLD_PAGE";
                   // }
-                  printf('\ndiscarded here\n');
+                  printf("\ndiscarded here\n");
+                  printf("Is Cookie %s\n", (isset($cookie['sess']) ? TRUE : FALSE));
                   $content .= User::stream_fini($transp, $s_a_p->rndstr, TRUE);
 
                   $s_a_p->pendpage_try_addflush($new_socket, 20, $enc, $header_out, $content);
@@ -2802,7 +2803,6 @@ class Brisk
 
                   break;
               }
-
               $this->sess_cur_set($user->sess);
               // close a previous opened index_read_ifra socket, if exists
               if (($prev = $user->rd_socket_get()) != NULL) {