Adding "PageFactory::setSession" method