Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Fetching Website Visitor Details By Email

Fetching Website Visitor Details By Email

Scheduled Pinned Locked Moved C#
csharpvisual-studio
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rowdykuttan
    wrote on last edited by
    #1

    Hi All I am developing a website in C# using VS 2005, Is it possible to get 1) Visitor IP 2) Visitor Country 3) Visitor Browser Details 4) Visitor Logged Time as email to my gmail account Kind Regards RK

    N G T 3 Replies Last reply
    0
    • R rowdykuttan

      Hi All I am developing a website in C# using VS 2005, Is it possible to get 1) Visitor IP 2) Visitor Country 3) Visitor Browser Details 4) Visitor Logged Time as email to my gmail account Kind Regards RK

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You can store this data in a database and use an automated process, perhaps a SQL Job, to format and email it. There is nothing built-in that will do this if that's what you are asking.


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • R rowdykuttan

        Hi All I am developing a website in C# using VS 2005, Is it possible to get 1) Visitor IP 2) Visitor Country 3) Visitor Browser Details 4) Visitor Logged Time as email to my gmail account Kind Regards RK

        G Offline
        G Offline
        GenJerDan
        wrote on last edited by
        #3

        Assumption: ASP.NET You can get the first three from Request.Headers, but not the last. The last is probably not possible, since everything is stateless and you can't tell when they leave unless there is a "log out" of some kind. If there is, then that's just a matter of doing a time difference between login and logout. Emailing can be done with System.Net.Mail as long as you have an available SMTP server out there you can use.

        1 Reply Last reply
        0
        • R rowdykuttan

          Hi All I am developing a website in C# using VS 2005, Is it possible to get 1) Visitor IP 2) Visitor Country 3) Visitor Browser Details 4) Visitor Logged Time as email to my gmail account Kind Regards RK

          T Offline
          T Offline
          T M Gray
          wrote on last edited by
          #4

          E-mail seems like a terribly inefficient way to record that kind of data. Try adding google analytics[^] to your site. It will give you way more than what you are looking for and probably take less time to add than some custom code for the short list you gave.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups