Link Search Menu Expand Document

Root.SLogin Property

Explanation Log in to the specified server in single session mode.

All current sessions will be disconnected and all existing objects will be deleted. Since Biz / Browser is initialized by calling the SLogin method, the CRS program described after the SLogin method will not be executed. Describe the operation after login in the CRS program specified in the URL.

Single Session Mode
While the session started by the SLogin method is valid, Biz / Browser will be in single session mode and will not be able to communicate with servers other than the connection destination specified in the URL.
Also, even if an exception that is not trapped occurs during single session mode, the debug information (core dump) will not be output.

These restrictions are provided for applications that require a high degree of security, and when used in combination with the HttpSession.IsLoginSession method, it is possible to prevent the application from loading unintended CRS programs at the same time.
Added since Ver.4.1.0
Not supported in Mobile
Call format //.SLogin( URL )
Return value None
Arguments String URL Destination URL
Unlike the Login method, the connection destination is specified collectively by URL instead of specifying Server and URI individually.
Exception None
Example of use
    var session = getHttpSession();
    if (session.IsLoginSession($TRUE)) {
        //.Get("main.crs");
    } else {
        //.SLogin("https://server/login.crs");
    }
    
Related item Login, Logout methods
HttpSession.IsLoginSession method