made rex_login::startSession static