I have a web-application used only inside the organization. I want to store information about when any IP (not only registered users' but also unauthorized users' too) come to site and when they left it.
I solved this problem only partially. Storing information about starting the session is easy - just ask for IP and save it with some ComeDateTime property. I also solved it for leave-case of registered users : I wrapped the SignOut() with additional functionality I need.
What should I do with unauthorized users? How can I detect when some IP left the site?