How to display that the user is online in ASP.Net

Last Reply on Sep 17, 2012 07:34 AM By Vasanth

Posted on Sep 17, 2012 04:54 AM

Hi,Can anyone please guide me how to display that the user is online(Maybe By A Green Light Image) without using Asp.Net Membership,

Thanks

Posted on Sep 17, 2012 07:34 AM

Make use of session variable for this kind and have a icon button in green and black color.

Let be in the master page.

In the master page load event, just chech the session variable and if it is null or empty, make the image as black which indicates the user is offline.

If there is value in the session , then set the green image in the master page load.

When even user successfully loged in, the set the session value and when the master page is rendered, it will check for the session value and set the green image.

Hope this may help you.

Thanks.