Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to check if the application is running for the first time after being installed.
Posted
Comments
Sandeep Mewara 29-Sep-12 5:44am    
ASP.NET application installed? Can you elaborate?
VISHWAS KAPTE 29-Sep-12 5:56am    
actually sir,
i want to check my application runs first time..
Sandeep Mewara 29-Sep-12 6:14am    
Care to elaborate?
HackensackNJ 29-Sep-12 6:42am    
webapps or desktopapps? if webapps try on the webserver with localhost. if desktop apps try on the client machine by executing the exe file.

1 solution

Because you are writing a web application, the only thing you could do on the client side is save a cookie with some information on it. This is not good because the user can delete the cookie and appear again to you to be a new visitor running the page for the first time.
You'll have to find some way of uniquely identifying users as they come to your site and then note that they have visited in your database. This is not as trivial as it sounds because you'll have to figure out how to ensure that you capture new visitors correctly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900