I want to record all the user that browse into my web site, in order to store IP address. I already record the user that log in to my website, but for the user that not log in, I really have no idea how
You can use a either a third party analytics tools such as Google Analytics. OR you can grab the client's IP address according to this article [ How to get a user's client IP address in ASP.NET? ] and store it in a database.
You can log IP address and browser information in "Session_Start" in Global.asax.cs which fires every time a new user session is start. If user already logged-in then you can skip the log.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.