Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am creating website in asp.net & i want to detect users monitor status either it is off or on.
is it possible to detect monitor status in asp.net?
Actually what i want to do when user is not operating his computer and his pc has gone to sleep mood so i want to inform it to the admin that this user is not active form n no of time.
does not matter user is using my website or not i just want to catch him if he left from the desk or hi pc is gone to sleep mood

please help me
thanks in advance

What I have tried:

i have tried to detect that using onmousemov() but when user minimize my website for N no of time so admin getting the message that user is offline but he is working on another task
So i just want to detect hi screen status when screen gone to sleep i want to log him out from my site otherwise he should be online until he logout himself

sorry for poor English
Please Help me i am getting this problem from three days
Posted
Updated 18-Jul-17 1:31am
Comments
Mehdi Gholam 18-Jul-17 4:40am    
Create a timer in your javascript code and call a URL on your server to log activity.
Member 13197393 19-Jul-17 1:28am    
i had also tried this method but when user left my site for that time period he log out from there if he performing his another work like using Photoshop or some other application

1 solution

Fortunately it is impossible...
1. To get any info from the end user he must browse your site...
2. Even one browse your site ad you add a JavaScript function to ping the server with user info it will means nothing, it is still possible that user left the building 10 hours ago...

There is not proven method to check user's presence without actually asking...
 
Share this answer
 
Comments
Member 13197393 19-Jul-17 1:22am    
thanks
i just wanted to detect his monitor status i thought that it is possible in asp.net

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