Mart's method lets you distinguish between RDP and ICA (citrix) connections. If you don't need that capability, then @TSSESSION should be fine.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D