Cross framework authentication zend + codeigniter

扶醉桌前 提交于 2019-11-28 12:02:07

问题


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.


回答1:


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! :)



来源:https://stackoverflow.com/questions/11839812/cross-framework-authentication-zend-codeigniter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!