getSession creates session if one does not exist already.