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.

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$99.99
16GB KIT (2x8GB) DDR4 Gamer Desktop RAM PC4 MIXED BRANDS
$65.00
Samsung 8GB DDR4 SO-DIMM PC4-3200AA 260-Pin RAM M471A1G44BB0-CWE Module
$29.25
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68
Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC
$29.99
50x RAM Box Tray DDR2 DDR3 DDR4 DDR5 ESD DIMM Memory Shipping Storage Transport
$9.99
DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix
$30.00
MINT Micron Cisco 32GB PC4-2400T DDR4 2Rx4 RDIMM RAM MTA36ASF4G72PZ-2G3 LOT
$159.99
SMART(Micron)SafeStor 32GB(1X32GB) 1RX4 NN4-3200AA(DDR4) HPE Server Memory
$159.98
Crucial 16GB (2x 8GB) Kit DDR3 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM
$41.00