<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to ClientFilter used the same Client ID 2 times - Bug?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9174d0d215/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9174d0d215/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/9174d0d215/</id><updated>2025-05-14T13:30:27.397000Z</updated><subtitle>Recent posts to ClientFilter used the same Client ID 2 times - Bug?</subtitle><entry><title>ClientFilter used the same Client ID 2 times - Bug?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9174d0d215/?limit=25#c6e7" rel="alternate"/><published>2025-05-14T13:30:27.397000Z</published><updated>2025-05-14T13:30:27.397000Z</updated><author><name>rene-h</name><uri>https://forge.codesys.com/u/rene-h/</uri></author><id>https://forge.codesys.com4e999e8d3c3e16feb9033af0f45a1d740410f634</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;like the topic name says, i have a problem on one Visu which i cannot reproduce on another Visu.&lt;/p&gt;
&lt;p&gt;We filter buttons with input locks and visible items with &lt;span&gt;[CURRENTCLIENTID]&lt;/span&gt; on different WebVisu's with different ID's, and one time the itfClient used the same Client ID for 2 Clients, so the Visualization on the first ID was wrong, because that one which connected after did not have the same permissions like the first, so the first one was blocked.&lt;/p&gt;
&lt;p&gt;We read the Clients with the VisuClientIteration project:&lt;/p&gt;
&lt;p&gt;//count active clients&lt;br/&gt;
gCli.iNumberOfClients:=gCli.iNumberOfClients+1;&lt;/p&gt;
&lt;p&gt;// if client is active write data to global struct&lt;br/&gt;
IF gCli.iNumberOfClients &amp;gt; 0 THEN&lt;br/&gt;
    gCli.astClientInfo&lt;span&gt;[gCli.iNumberOfClients-1]&lt;/span&gt;.iClientID:=itfClient.ClientId ;&lt;br/&gt;
    gCli.astClientInfo&lt;span&gt;[gCli.iNumberOfClients-1]&lt;/span&gt;.stCurrentVisu:=itfClient.CurrentVisuName;&lt;br/&gt;
    gCli.astClientInfo&lt;span&gt;[gCli.iNumberOfClients-1]&lt;/span&gt;.wsUserName:=itfClient.UserName;&lt;br/&gt;
    gCli.astClientInfo&lt;span&gt;[gCli.iNumberOfClients-1]&lt;/span&gt;.sIpAddress:=itfClient.GetIPv4Address();&lt;br/&gt;
    gCli.astClientInfo&lt;span&gt;[gCli.iNumberOfClients-1]&lt;/span&gt;.ClientType:=itfClient.ClientType;&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;Runtime from the device: 3.5.19.20&lt;br/&gt;
Codesys we use: 3.5.20.10&lt;/p&gt;
&lt;p&gt;I added a screenshot where the same ID exists 2 times.&lt;/p&gt;
&lt;p&gt;Thanks for your answers.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>