extract member_id from session