getSession method added