聊天应用程序中的用户会话重叠 [英] User Session OverLapping in Chat Application

查看:106
本文介绍了聊天应用程序中的用户会话重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好专家,

我观察到一个奇怪的问题.让我向您解释我的应用程序的背景是什么.我的客户给了我一个聊天应用程序,例如Facebook中的on,它基本上是使用Linq to SQL和XML在ASP.net上构建的.当我独立运行此应用程序时,它将打开浏览器,我需要在其中输入昵称(Sam)和登录凭据.之后,我将被重定向到聊天页面,然后显示谁在线(在我的情况下为山姆).当我打开另一个浏览器并使用昵称(steve)登录时,它在朋友列表中显示有一个在线用户(Sam).史蒂夫上线的事情也发生在山姆的身边.现在,这两个人可以像我们在Facebook上那样互相交谈.如果第三位用户在另一个浏览器上以其昵称(Joe)上线,那么他在Sam和Steve的身边也会出现在线状态.它基本上是应用程序的当前seario.

现在这就是我需要做的:我必须将此聊天模块与约会应用程序集成在一起,以便朋友只能与他们的朋友聊天.就像我们在facebook上一样.

1st我只是尝试在我从客户那里获得的独立聊天应用程序中实现约会应用程序数据库.

我可以从聊天的好友列表中的数据库中填充基本上在线的好友列表,没有任何问题.笑

但是,当我打开第二个浏览器登录另一个基本上是我的朋友的用户时(因为我想与他聊天),当他上线时,他有了他的在线朋友列表,而当我也在线时,我也出现在他的身边.错在我这边,他也和他的在线朋友*皱着眉*一起上网,如果其他人在所有浏览器中都在线,他将和他的朋友们上网.

我不知道为什么会这样.在调试时,我注意到了这一点:制作此聊天应用程序的人为在线用户创建了XML,并在最后将其销毁.

我该怎么办?

在不同的浏览器上,会话不应重叠.

我希望我已经清楚地解释了我的问题.

请让我知道有关此问题的任何建议或解决方案.


在此先感谢!

Hello Experts,

I''m observing a strange problem. Let me explain to you what the back ground of my application is. My client gave me a Chat application like the on in Facebook which basically builds on ASP.net using Linq to SQL and XML. When I run this application stand alone it opens up the browsers where I need to put my nick name(Sam) and login credentials. After that I will be redirected to the chat page where it then shows who is online (sam in my case). As I open another browser and login with nickname (steve) it shows in the friend list that there is one user(Sam) online. The same happend towards Sam''s side that Steve has come online. Now these two can chat with eachother the way we do in facebook. If third user comes online with his nick name(Joe) on a different browser he will appear online to Sam''s and Steve''s side as well. It is basically the current seario of the application.

Now this is what I need to do: I have to integrate this chat module with my dating application so that friends can chat with their friends only. Just like we do in facebook.

1st I just tried to implemet my dating application database in the stand alone chatting application which I got from my client.

I''m able to populate my friends list who are basically online from the database in the chatting friends list with no issues. Laughing

But as I open 2nd browsers to login another user who is basically my friend as i want to chat with him, as he gets online he has his online friend list and as I am also online I also appear online on his side too. What''s wrong is here on my side he also get online with his online friends *Frown* and if some one else gets online in all browsers he will get online with his friends.

I dont know why its happening. When debugging this is what I noticed: The one who made this chat application he create XML for online users and he destroy it as well at the end.

What should I do to handle this?

On different browsers session should not overlap.

I hope I have explained my problem clearly.

Please let me know any suggestion or any solution for this problem.


Thanks in advance!

推荐答案

大家好,

还在等待重播..

让我知道我该怎么解决

谢谢
Hello Guys,

Still waiting for replay plzz..

Let me know how should i solve this

Thanks


这篇关于聊天应用程序中的用户会话重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆