Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hello guys!

I'm working on a chatting form in ASP .NET and facing problem in managing users.

I take all of the users who have logged in inside a listbox while they simply add their nick name from a textbox.
When the users leave the form, the names still appear in the listbox when it should have been removed from the list.
I also tried session but I'm still facing the same problem.

Is there anyone who can help me on this matter?

Thanks in advance

as it is a web application users access chat form through browser when a user leaves the page by pressing sign out button then his/her name is removed from list box but when user closes chatting form page or browser his/her name remains in list box but it should have been removed from the list, that is the problem.
Is there any event or method that traces the user browser and Session.


[EDITED by Nithin: I believe that OP means Session state by Session]
Posted
Updated 27-May-11 19:56pm
v5
Comments
Sergey Alexandrovich Kryukov 26-May-11 1:47am    
What kind of help do you need?
--SA
Nithin Sundar 26-May-11 2:53am    
Check out the question now. It ought to be clearer after the edit.
cuteband 26-May-11 3:25am    
what i can suggest here is to clear the listbox when leaving the form. Syantax Listbox.items.clear()
Dalek Dave 26-May-11 3:42am    
Edited for Grammar and Readability.
naseer baloch 28-May-11 1:52am    
thanks to all of you friends !

as it is a web application users access chat form through browser when a user leaves the page by pressing sign out button then his/her name is removed from list box but when user closes chatting form page or browser his/her name remains in list box but it should have been removed from the list, that is the problem.
Is there any event or method that traces the user browser and Session.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900