如何知道哪个Lan用户是在我的Intranet上?
If you have disabled Anonymous access, then you should be able to retrieve the value from: Note that IE is required to support Challenge/Response (IIS4) or Integrated Windows Security (IIS5). If you can't disable Anonymous access, and/or need to support Netscape, then there is a possible alternative, provided you're not using DHCP. If your users have static IP addresses, you could store their usernames in a table and do a lookup against their IP: If you can't enforce either of those things, then you may have to resort to forcing your users to log in (even only once, then storing a cookie). I suppose this depends on balancing the importance of knowing who is on the site versus every user having to log in.
If you have disabled Anonymous access, then you should be able to retrieve the value from: Note that IE is required to support Challenge/Response (IIS4) or Integrated Windows Security (IIS5). If you can't disable Anonymous access, and/or need to support Netscape, then there is a possible alternative, provided you're not using DHCP. If your users have static IP addresses, you could store their usernames in a table and do a lookup against their IP: If you can't enforce either of those things, then you may have to resort to forcing your users to log in (even only once, then storing a cookie). I suppose this depends on balancing the importance of knowing who is on the site versus every user having to log in.
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=3108