I’m listening to the hooks “sessions_start” and “cp_member_login”. I want to be able to know on every CP page:
And possibly other info. How do I get this?
I tried using the session object passed by the hook, but the info was all empty.
public function listenToSession($sess)
{
//This is false
$userName = $sess->userdata[ "username" ];
//These are both empty
$memberId = $sess->sdata[ "member_id" ];
$sessionId = $sess->sdata[ "session_id" ];
}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.