Cross framework authentication zend + codeigniter
Asked Answered
S

1

0

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.

Snazzy answered 7/8, 2012 at 5:33 Comment(1)
So, maybe a dumb question, but are both of these sites sharing the same database?Nikianikita
S
0

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

Snazzy answered 13/8, 2012 at 7:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.