01.
<?php session_start();
02.
?><!doctype html>
03.
<html>
04.
<head>
05.
<title>ThaiCreate.Com</title>
07.
<script type=
"text/javascript"
>
08.
function
getSession(){
09.
$.post(
"getss.php"
, { },
function
(result){ $(
"#div1"
).html(result); });
10.
}
11.
$(document).ready(
function
(){
12.
setInterval(getSession, 1000);
13.
});
14.
</script>
15.
</head>
16.
<body>
17.
<div id=
"div1"
></div>
18.
</body>
19.
</html>