Jump to content
McKay Development

How to fix Error: LogonSessionReplaced


EnelGy

Recommended Posts

Hello I have seen the answer on this "And the reason is because you need to set logonID to something unique in logOn if you're logging into the same account from the same public IP."

Can you be with this answer more specific ???

What should I do here ? 

    let logonId = details.logonID;
            if (logonId) {
                let maxUint32 = Math.pow(2, 32) - 1;
                if (typeof logonId == 'string' && logonId.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)) {
                    logonId = StdLib.IPv4.stringToInt(logonId) ^ PRIVATE_IP_OBFUSCATION_MASK;
                } else if (typeof logonId == 'number' && logonId > maxUint32) {
                    this._warn(`logonID ${details.logonID} is greater than ${maxUint32} and has been truncated.`);
                    logonId = maxUint32;
                }
            }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...