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.
我正在研究 Zend 框架。我有一个问题Zend_Auth。
Zend_Auth
我必须得到所有登录的用户。我怎样才能做到这一点?
这超出了 Zend_Auth 的直接范围。您必须自己将其编码到您的应用程序中。
在收到来自 authenticate() 方法的结果后,您可以轻松地执行此操作。一旦你验证你有一个有效的结果,你就可以在一个数据库表或另一个持久存储系统中跟踪当前登录的用户。您需要确保为登录提供合理的过期时间,以防有人离开您的应用程序而没有实际使用您的注销方法。