更新时间:2023-12-04 19:13:34
您可以将会话信息保存到数据库.它将与会话ID相关.然后创建一个插件来检查数据库行是否仍然存在.如果不是,则执行 Zend_Auth :: getInstance()-> clearIdentity()
You can save session info to the database. It would be related by session id.
Then create a plugin that checks if the DB row still exists. If not, then execute Zend_Auth::getInstance()->clearIdentity()
注销用户的方法将从数据库中删除会话.
The method that logs the user out would delete the session from DB.