Session object used in place of session functions