User Location

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/22/2012 12:51:34 PM
Gravatar
Total Posts 88

User Location

hi,

Is there any reason User Location only stores this propreties in authenticationHandler?

sample code from "AuthHandlerHttpModule"

  try
                    {
                        UserLocation userLocation = new UserLocation(siteUser.UserGuid, SiteUtils.GetIP4Address());
                        userLocation.SiteGuid = siteSettings.SiteGuid;
                        userLocation.Hostname = app.Request.UserHostName;
                        userLocation.Save();
                        log.Info("Set UserLocation : " + app.Request.UserHostName + ":" + SiteUtils.GetIP4Address());
                    }

thanks

 

 

 this.continent,
                this.country,
                this.region,
                this.city,
                this.timeZone,
3/22/2012 1:21:33 PM
Gravatar
Total Posts 18439

Re: User Location

This is not a bug.

Those are the only properties available (and usually Userhostname is blank so all we really can get is the ip address), we don't have anything in a web request to tell us the other properties.

However it might be possible to populate those other fields later using something like data from ipligence or something similar to that. One could get that data and possibly run a query to populate the additioanl fields based on the ip address. However the accuracy of geolocation by ipddress is probably not very good, it can tell approximately where the user is but with a wide margin of error I suspect.

You must sign in to post in the forums. This thread is closed to new posts.