0
我想在我的网站中创建一个私人聊天模块。但我无法获得其他用户的会话。谁可以帮我这个事?与多个会话使用php聊天
下面的代码:
$url1 = 'onclick="window.open(\'../chat/index.php?do=chat&room_owner='.$uname.'&user='.$_SESSION['uname']['username'].'\',\'pop_up\',\'toolbar=no, top=0,location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=450\')"';
$image_path = "images/online.png";
$status = 'Online';
1st user(me): ?do=chat&room_owner='.$uname.' >this is working
2nd user(recipient): &user='.$_SESSION['uname']['username'].' > this is not working?
这是一个私人聊天模块,所以我需要得到其他用户的会话。 $ _SESSION ['uname'] ['username'];应显示其他用户的用户名。 – 2012-07-21 01:59:41