Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve a session Id in a VB Program ?

Status
Not open for further replies.

robzot

Programmer
May 9, 2005
1
IT
Hi,

I'm new at Citrix, so sorry if my question looks trivial.

I need to use in my VB application a unique Id
that identifies the a running session of Citrix

Is there any API call or environmemt variable that I can use for this purpose ?

The behaviour should be the following :

If I open a Citrix session in 2 different Client PCs
Then I run myVBProgram
I should be able to have 2 different unique Ids (one for each PC)
If I run 2 instances of myVBProgram from the same PC I should get the same Id in both.

I need also to know if the program is running in a Citrix session or on a stand-alone PC
How to find it out ?

Thanks a lot for your help

Robert


 
When you establish the session some environment variables are set which i think should do the trick.

Each sessions get a uniquie session name.

If you log in to a session and open a cmd prompt you will be able to see what they are.

if you "echo %SESSIONNAME%" you will see you session name which you should then be able to reference from the app.

Hope that helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top