私はまだ JSON/AJAX のマスターではないので、これを行う方法がわかりません。
jQuery で使用する $_SESSION['name'] PHP 変数が必要ですが、それにアクセスする方法がわかりません...次のことを考慮してください。
// the 'who is typing' shindig
$.ajax(
{
url: "whos_typing.html",
cache: false,
success: function(whos)
{
// here I need to access $_SESSION['name'] and do stuff with it
$("#soandso").html(whos); //Insert who's typing into the #soandso
}
});