问题描述
Zend_Auth使用PHP会话,但codeigniter有一个不同的方法。
我正在工作的项目要求任何人hasIdentity
当我在zend系统上验证用户时,如何设置Codeigniter会话
$ b$ b
$ b
p> EDIT:这两个网站都使用不同的数据库,但是用户被索引在一起。
快速解决方法是检查Zend Auth存储,如果存在,根据hasIdentity,我们生成CI Cookie,一旦会话在Zend应用程序过期,我们检查并删除CI Cookie。
这是唯一的解决方法,我可以想出,这工作! :)
Zend_Auth uses PHP Session but, codeigniter has a different approach altogether.
The project that I am working on requires that anyone who hasIdentity() in zend, when logs into another system which uses codeigniter, should not have issues to browse around.
How do I set Codeigniter session when I authenticate the user on zend system
and next step is - vice-versa.
Thanks in Advance.
EDIT: Both the sites are using different database but, users are indexed together.
A quick workaround is to check for Zend Auth storage and if it exists, depending on what was hasIdentity, we generate CI Cookies, once the session expires in Zend app, we do a check and delete CI Cookies.
That is the only workaround I could figure out, which worked! :)
这篇关于跨框架认证zend + codeigniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!