milesj/cake-auto_login — Issue #11: Storing auth data in cookie
Author: ericfri
Created: 2011-12-08 23:43:18+00:00
State: open

I made a small change in AutoLoginComponent.php line 215. It read "$cookie = array();", I changed it to "$cookie = $this->Auth->user();"
By doing this I stored all the original session data into the cookie, so when the autologin does its thing it has all the other data to go with it.
Before it would log a user in, but anything stored in $this->Auth->user() wouldn't be there, now it is.