Added setPage method to Session class