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.
我目前正在为登录系统开发“记住我”功能。
用户成功登录后,我会将用户的 ip、浏览器、会话 ID 和令牌存储在数据库中。如果我确实将它们存储在数据库中,我将需要从数据库中请求它们并对每个页面进行身份验证。
主要问题是,如果我为每一页都请求它们,它会减慢我的网站速度吗?
每个页面请求的用户身份验证肯定会降低系统的性能。
php中用户身份验证的最佳方式参考
我有一张带有常用标签的 ccs 表。{} a.hover {}
我还有一个 div=id "footer" 我想改变字体样式但是全局 a. 和 a.hover 即使我添加了一个
#footer{ color: #333333 }
我可以使用它覆盖还是需要尝试?a.#footer或者a.hover
a.#footer
a.hover