Wired,
I believe it is as easy as taking the data the extension gives you which includes everything in the Session class and returning it back when you are done messing with it.
So you call the ‘sessions_end’ hook in your extension. That hook hands off $this to you your extension. So you could do something like this in the method function of your extension:
function extend($session)
{
$session->userdata['member_id'] = 50;
return $session;
}
Making sense?
Jamie
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.