working global session class