sessions helper and controller