Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi!
i have the user table with the user name and status,now when user presses logout button its status is updated to offline and when user login its status is changed to online..now i want that when session destroys automatically i want that user status changed to offline..becoz its creating problem when the user does not logout and its session automatically gets destroyed even then status remains online..i am using this status field for chat purpose...to keep track which users are online..
Posted

1 solution

hello there
please have a look on the following URL this may Help you with the problem

http://forums.asp.net/t/1082125.aspx/1?How+to+check+whether+a+session+exists+or+not+[^]

you can implement the same mechanism on the login page or page's which user can see after the login or you can use the ajax to check it asynchronously for you.
best regards.
 
Share this answer
 
v2

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