%clientname% is not a kixtart variable but a environment one.

there is the fact that if you are using admin session, the %clientname% should always be empty.
_________________________
!

download KiXnet