How to autologin between Yii2 and Yii1

I have a registration process written in Yii2… it does the usual recording of stuff to the database and logs the user in. Autologin is set to true. I’d like to be able to use the cookie generated by the Yii2 app to log into a Yii1 app that was written a few years ago.

Comparing …User::sendIdentityCookie (Yii2) with CWebUser::saveToCookie (Yii1) it looks like the cookies themselves are different. The Yii1 cookie is serialized, then hashed while the Yii2 cookie is JSONized.

I have two questions:

[list=1]

[*]Is the Yii2 cookie hashed/obfuscated somewhere later, presumably CSRF?

[*]Has anyone implemented this already? Is there code than implements Yii2 autologin for Yii1 or vice versa?

[/list]

Thanks.

Dave

Makes no sense, why have a login, no now no login, wait it’s a login.

I worked for the State of Texas, you had to logout.

I am not a fan of remember me, why even have a login system?

Just have users login and logout, makes things so much easier.

Like forum here, user can view with no login, but if they want to post, well you see.