2011-03-31, 13:39:28
Well, I'm at a loss.
I added some debug code after cookie_check():
and it seems $USR is null. I'm guessing this may be due to the new multi-user code...
Rather than trying to use this core function I think I'll just have to create my plugin's own cookie on login hook and destroy it on logout hook.
-Rob A>
I added some debug code after cookie_check():
Code:
global $USR;
global $SALT;
global $cookie_name;
var_dump($USR);
var_dump($SALT);
var_dump($cookie_name);
and it seems $USR is null. I'm guessing this may be due to the new multi-user code...
Rather than trying to use this core function I think I'll just have to create my plugin's own cookie on login hook and destroy it on logout hook.
-Rob A>