Have you tried just deleting/renaming ~.Xauthority and restarting X.
I am attempting to use the knx-installer on a Kanotix remaster. Not only that but I've also nuked all of KDE. Instead I wish to use GDM. The installation actually works fine and from run level 3 user can issue startxfce4 and away it goes and works like a dream. If however one attempts to use ANY login manager including kdm, gdm or xdm I get the dreaded Xlib: Invalid MIT-MAGIC-COOKIE-1 key in .xsession-errors. I don't *think* it's an installer issue but rather .Xauthority but then again if I were sure I would fix it right?Anyway...I don't know too much about how the xserver permissions work. Thanks for any ideas.
Have you tried just deleting/renaming ~.Xauthority and restarting X.

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90
SMART(Micron)SafeStor 32GB(1X32GB) 1RX4 NN4-3200AA(DDR4) HPE Server Memory
$159.98
Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick
$289.80
TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$573.98
Server Memory: Samsung 32GB 4DRx4 PC4-2133P ECC LRDIMM DDR4 M386A4G40DM0-CPB
$124.95
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68
HYNIX HMA82GR7DJR8N - XN 3200AA 16GB 288 Pin RDIMM DDR4 Memory
$105.00
SK Hynix PC4-2133P-LD1-11 256GB (8x32GB) RAM DDR4 2133MHz HMA84GL7AMR4N-TF
$1225.00
Microsoft Windows 11 Pro 64-Bit USB Flash Drive (HAV-00162)
$36.99
Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet
$147.00