locked
counter RRS feed

  • Question

  • User1900385328 posted
    [:'(]how to create counter when the visitor visit the mobile web site to count the number of visitor who has visit the site.. wat are the codes for asp.net mobile application??
    Tuesday, May 10, 2005 4:10 AM

All replies

  • User-95607119 posted

    This question is not related to ASP.NET mobile. It is question about solution. Step by step:

    1) When your ASP.NET application starts, read visitor count from file.
    2) When Session starts then add 1 to visitor count that you keep in application variable.
    3) When application ends then write visitors count back to file.

    You can also write count back to file when session starts, not then when application shuts down. In this case you have actual number of visitors always in this file too.

    Tuesday, May 10, 2005 9:58 AM