src/Util.php
public static function get_session_info() {
        $browser_info = get_browser_info();
        $result = new stdClass;
        $result->ip = get_client_ip();
        $result->browser_info = (object)$browser_info;

        return $result;
    }
public static function get_session_info() {
        $browser_info = get_browser_info();
        $result = new stdClass;
        $result->ip = get_client_ip();
        $result->browser_info = (object)$browser_info;

        return $result;
    }
public static function get_session_info ( ) { $ browser_info = get_browser_info ( ) ; $ result = new stdClass ; $ result -> ip = get_client_ip ( ) ; $ result -> browser_info = ( object ) $ browser_info ; return $ result ; }
Store client session info to an object
@return stdClass returns the object containing details of the session
Store client session info to an object