implement API to retrieve sessions

param:status and context.