Click here to Skip to main content
16,023,224 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one table called status table having userid name and status field .when one person logged in his user id and name will be stored in database and the status table is updated from 0 to 1.Then one more user will come and logged in and table updated.

So now i have logged in with say userid=2002 and name=abc i am using the system at present ,when another person logged in with his userid=say 2003 name=efg then userid 2002 should receive popup message as 2003 is online or currently logged in the application form as popup message

Actually this is a window based application

Can anyone please help this
Posted
Updated 17-Jun-10 2:41am
v3

First, I would be really annoyed if I kept getting a popup message saying a new user has logged into the application. I would recommend a less intrusive notification mechanism.

As to your problem, I would simply make the application check the dabase to se who's logged in. Make it check automatically every 10 minutes or so. Also provide the user with a way to manually check (a menu item or button).
 
Share this answer
 
hi friend,

First of all please specify that your application is pure desktop or web with desktop?

Thanks,

Mahesh Patel
 
Share this answer
 
Comments
Sandeep Mewara 18-Jun-10 1:23am    
Reason for my vote of 1
This is a comment and not an answer!

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