Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试注册一个人并验证他。每当新用户第一次登录我的网站时验证后,我希望他重定向到 Default.aspx 页面,否则他的仪表板。那么我如何知道一个人是否是第一次登录我的网站呢?我们可以通过网络知道吗?
seen_welcome_msg在数据库的用户表中添加一个(布尔)列(例如)。
seen_welcome_msg
当用户登录时,如果设置为false,则重定向用户。
false
当用户访问Default.aspx时,将列值设置为true
Default.aspx
true