Yii 1.1 and Yii 2.0 apps and unique login between them


I have some projects in Yii 1.1 and when a user login into one project he can open other projects without having to login again. This was accomplished by using the same cookie domain and application ID (in main.php ‘id’ key) in all projects (they all run in an Intranet).

I’m trying to do the same between one of those Yii 1.1 projects and a new Yii 2.0 project but sharing the same cookie domain and application ID is not enough.

Anyone know if it’s possible and how to achieve it?

No one? No ideas?

I still need help with this. Can someone point me in a direction?

This is probably because of changes in generating auth_key as in Yii2 new Security component was introduced instead of old Security helper and encryption and hash functions are not backward compatible by default.

See https://github.com/yiisoft/yii2/blob/master/framework/UPGRADE.md

I ended up analysing the session from both Yii 1.1 and 2.0 sessions.

Created some vars in Yii 1.1 and some others on Yii 2.0 and now the login is compatible.

Thanks anyway!