Mart,

Have you confirmed that it will return "ICA" from a Xen Desktop connection under all conditions?

This isn't a traditional Citrix server, and I don't connect to my Xen server using an ICA client, so this may be messing withthings a bit.. That's why I sugggest avoiding the session-type determination entirely.

If the env var is set, the session is a Xen system and the var contains the client computer name, otherwise it is blank. This keeps the process simple, since all that's needed is to identify the client computer name to determine the user's physical location.

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