Converted session to a private property