From the 2.2.0 changelog:
Altered Sessions handling and removed the uniqueid and userhash cookies.
Can anyone elaborate on this a little so I can find what needs to be modified on my end?
This is my code that has stopped working:
function after_login($user){
// if ($this->logged_in_from) return;
$u = $this->get_user_by_login($user['login']);
if ($u['password'] != $this->crypt($user['pass'])) return;
if ($u['group_id'] == 0) return;
$this->set_cookie("exp_userhash", $u['password']);
$this->set_cookie("exp_uniqueid", $u['unique_id']);
}I am using ‘cookies only’ for front end logins. I really need to figure out how to set the cookie using the new cookie data, but I can’t find anything in the dev docs.
I didn’t pick up that this was being done. I used the uniqueid cookie to tie in an outside application. I was wondering why it stopped working this morning since I just updated to 2.2.2 last night. Is there a way for me to add this in or utilize the uniqueid in some way so that it can be passed via cookie, session, etc.
Hey c@sey and jeffmace,
I’m sure this must be frustrating for you, however, since our API regarding sessions didn’t change and your code connects directly to these now deprecated cookies, this is a question better suited for the Development & Programming forum.
One thing I will note is that session_start() is a PHP-native function. EE is built on top of CodeIgniter which uses its own session class and does not make use of native PHP sessions.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.