I have 2 codeigniter installs running on the same server.
the first app is :
localhost/aa/index.php
second app is :
localhost/aa/invoice/index.php
The second app is in the first app folder. In the live environment, they will be on the same domain. I am trying to get a single sign-on to work -- so, if i have userdata set in the aa application I should be able to verify it in the invoice folder also.
Is there a way to share the sessions.
As the folders will always be on the same domain, I am open to working with sessions outside the ci library(only php) also.
Edit :
They show the same session id when they don't have any data. The moment I add some variables on one application, the other goes out of sync.
Also I have sessions being stored in the database(both applications share the same database.)
Please suggest.
Thanks! : )
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…