X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=10ff96c6a9e079ab23658ec9c99f16c2fc3b2876;hb=c1a075dcf5f14f3bf5ee2ac8478e84787770a006;hp=8de6a742af655dc029bb6ffb3c011ef1b88b783d;hpb=e08ce000a0c941895e99d6bf777669de24111613;p=brisk.git diff --git a/web/index.php b/web/index.php index 8de6a74..10ff96c 100644 --- a/web/index.php +++ b/web/index.php @@ -512,6 +512,13 @@ function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_f } } } + + if ($ACTION == "room") { + /* shutdown any previous transport socket */ + $user->page_id = md5(microtime().$remote_addr_full); + // $brisk->abort_old_sockets($user); + } + /* Rendering. */ if ($BRISK_SHOWHTML == "debugtable") { @@ -1029,7 +1036,7 @@ supported by:
Brisk - + @@ -1202,7 +1209,7 @@ cookie_law(null); Brisk - + @@ -1224,6 +1231,7 @@ cookie_law(null); var $$ = jQuery.noConflict(); var sess = "not_connected"; + var page_id = "page_id; ?>"; var g_debug = 0; var g_lang = ""; var g_lng = ""; @@ -1271,7 +1279,8 @@ cookie_law(null); sidebanners_init($G_sidebanner_idx); ?> sess = ""; - xstm = new xynt_streaming(window, , 2, null /* console */, gst, 'index_php', 'sess', sess, $('sandbox'), 'index_rd.php', function(com){eval(com);}); + xstm = new xynt_streaming(window, , 2, null /* console */, gst, + 'index_php', 'sess', sess, $('sandbox'), 'index_rd.php', page_id, function(com){eval(com);}); xstm.hbit_set(heartbit); tra = new train($('room_tit')); window.onunload = onunload_cb;