Creates a new session, and the player calling this action will be put in that session. type can be a value ranging from 0 to 255. This function will be executed asynchronously. tag can be any string value. When the new session-information has been received, the script set by gms_script_set_session_change will be called.
When the player joins a new session, communication with other players is limited. For more info, see sessions