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.
我有一个简单的通知系统,它应该像通知系统一样通知用户是否有新评论发布到用户的页面。
为了构建它,我计划在hasViewed页面数据库中为合并到通知系统中的每个页面提供一个附加变量,然后简单地将值吐出 where hasViewed = 0。
hasViewed
hasViewed = 0
唯一的问题是,如何测试SESSION用户是否查看了页面?谢谢你。
SESSION