ASP.Net Web应用程序............................................. ......................

问题描述:

如何在安装后检查应用程序是否首次运行.

how to check if the application is running for the first time after being installed.

由于您正在编写Web应用程序,因此您唯一可以做的在客户端保存一个cookie,其中包含一些信息.这是不好的,因为用户可以删除cookie并再次出现在您面前,成为您第一次运行该页面的新访客.
您将必须找到某种方式来唯一标识用户访问您的网站,然后注意他们已经访问了您的数据库.这听起来并不简单,因为您必须弄清楚如何确保正确捕获新的访问者.
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.