projects
/
xynt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gst status object and sess-ion value passed to http_streaming as params
[xynt.git]
/
web
/
test-hs.php
diff --git
a/web/test-hs.php
b/web/test-hs.php
index
3ffd263
..
c09c75c
100644
(file)
--- a/
web/test-hs.php
+++ b/
web/test-hs.php
@@
-4,14
+4,25
@@
<script type="text/javascript" src="xynt/xynt-console.js"></script>
<script type="text/javascript" src="xynt/xynt-http-streaming.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript" src="xynt/xynt-console.js"></script>
<script type="text/javascript" src="xynt/xynt-http-streaming.js"></script>
<script type="text/javascript"><!--
-var
allmythings="BEGIN"
;
+var
gst = null
;
<?php
if ($action != 'stop') {
?>
window.onload = function () {
var hs;
<?php
if ($action != 'stop') {
?>
window.onload = function () {
var hs;
- hs = new http_streaming(window, console);
+ var sess;
+
+ sess = '<?php
+ if (!isset($sess)) {
+ $sess = md5(mt_rand());
+ }
+ printf("%s", $sess);
+?>';
+
+ createCookie('sess', sess, 24*365,cookiepath);
+ gst = new globst();
+ hs = new http_streaming(window, gst, sess, console);
// FIXME: with relative path not work!
hs.start('http://dodo.birds.lan/xynt/test-hs-rd.php');
// hs.start('test-hs-rd.php');
// FIXME: with relative path not work!
hs.start('http://dodo.birds.lan/xynt/test-hs-rd.php');
// hs.start('test-hs-rd.php');
@@
-20,8
+31,6
@@
window.onload = function () {
}
?>
}
?>
-
-
window.onkeypress = function () {
console.log("win kpress");
}
window.onkeypress = function () {
console.log("win kpress");
}