We help IT Professionals succeed at work.

Getting kicked out of Citrix sessions when user connects

jstremblay
jstremblay asked
on
2,566 Views
Last Modified: 2013-11-21
I'm using a web page that embed the citrix ica web client activeX to connect to my published application on Citrix Presentation Server 4.5.

The first time I connect (or if I'm the first user to connect, everything looks fine.
But as soon as a second user connect (from a different PC):

1- The user which is already connected gets kicked out of the session
2- The second user connects successfully but connects to the session of the first user and can see the application as it was left by the first user when it got kicked out.
3- The application stated as "InitiaProgram also launch for the second user in such way that there is now 2 instances of the application running in the session: The instance from the first user and the instance launched for the second user.

I can repeat this on and on and get as many instances of the application running in the unique session.
Obviously, this is not what I want. I want users to have their own session and not kicking out one each other.

See attached code snippet to know how I connect to the server.
Some interesting info about how the connection is made: Since the code is in a web page in a protected environment, everyone using it actually connects with the same credentials.  So what we need (and have done before): more than one people connecting with the same user name; Citrix opening a separate session for each of them.

I looked at many options regarding session sharing and session reconnection but couldn't find what I was looking for.

Anyone can help me with this?
Thank you very much!
pCitrix.Address = "@[CITRIX.ADDRESS]@";	
pCitrix.SetProp("Username","@[CITRIX.USERNAME]@");
pCitrix.SetProp("Password","@[CITRIX.PASSWORD]@");
pCitrix.SetProp("Domain","@[CITRIX.HOST]@");
pCitrix.SetProp("InitialProgram","#Remote Support Tool");
pCitrix.Connect();

Open in new window

Comment
Watch Question

Commented:
Are you using different user accounts for each user, or are you trying to have multiple users trying to login using the same username and password?

Commented:
There is a setting in tscc.msc to restrict each user to one session, you can turn that off. Hope that fixes it.

Commented:
Sorry, I just read a bit further, You are experiencing smoothroaming. You cannot have multiple users logging in with the same credentials. It is against the Citrix EULA. Each user needs their own login.

Commented:
Against the EULA? Can you show me where in the EULA it states this?  You are saying 2 administrators can't be logged into the same citrix farm at the same time with the same account?

Commented:
Sorry, I thought I read that. I stand corrected
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
Glad you figured it out, Sorry about the misdirection on the EULA

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.