Need Asp.Net .....Help.....

  • Thread starter Thread starter commerical
  • Start date Start date
C

commerical

Hi,
I am working with ASP.NET. I need to get the information as to which
user has currently logged in. Is there anyone to help me out for the
same.
 
Hi,
I am working with ASP.NET. I need to get the information as to which
user has currently logged in. Is there anyone to help me out for the
same.

You could iterate the the users and check the Online status.

MembershipUserCollection muc = Membership.GetAllUsers();
foreach (MembershipUser mu in muc)
{
if (mu.IsOnline)
{
// do something
}
}
Peter Kellner
http://peterkellner.net
 
Keep the users who log in in an application variable. When a seesion
starts put the user in, when the session ends take the user out.
Everything is done in the global.asax in the respective events.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top