Link to home
Create AccountLog in
Avatar of yuanzhou
yuanzhou

asked on

how to keep citrix session alive from client side? any free software to keep interacting with citrix server?

how to keep citrix session alive from client side? any free software to keep interacting with citrix server to let citrix server realize this session is still alive?
Difficulty is that Citrix server manager doesn't agree to set timeout of my account to "never". I have to think a way from client side to keep my session alive. I am running batch mode overnight simulation program and getting auto-logoff after no human interaction is detected by the citrix server. Thanks a lot.
ASKER CERTIFIED SOLUTION
Avatar of Herrmannator
Herrmannator

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Herrmannator
Herrmannator

PS:  when done wanting to keep your session active even when you are away, you would just click the 'X' in the upper right if the command window to close this script.
Do you know how long the Citrix session will last before it is disconnected?
Do you have Keep-Alive set in the Citrix Console (AMC)?  I wondering if your firewall is killing the session because there has been no activity for X minutes.  A Keep-Alive should prevent this from happening.
It seems to me like you need to check on your connection settings in your domain, server and Citrix. There are timeout settings in these locations that will disconnect a session if there is no keyboard or mouse movement. You can find it in a Group Policy, or under the ICA settings on the server, or within your Citrix farm. I do believe that Citrix keeps communicating with the server even if there is no keyboard or mouse movements. This is the ICA keep-alive setting found under your farm settings.
Avatar of yuanzhou

ASKER

To Herrmannator: Thanks a lot. I tried your vbs code but my citrix still got auto-logoff after 2 hours, which is set time for timeout of citrix session.

To KrAzY: Thanks a lot. It always got disconnected after 2 hours, which is set time of citrix session. As a citrix client, I can see the setting but I don't have the right to change it to "Never". I don't even have the right to look at activate Citrix Console (AMC) to see if it has Keep-Alive set. The difficulty lies in my searching for client side trick to stay connected with Citrix server and disable the timeout.

Any further help is very appreciated! Thanks a lot.
To EFHC:The difficulty is that as a client, I don't have right to change or see the setting/group policy of citrix server. I may need employ some client side fake auto-click-type program to mimic human interaction to keep Citrix server still thinking I am alive while my simulation is running in batch mode overnight.

More insights are appreciated!
Ok, I understand what you are trying to do.
This is very non-technical, but it worked for Home Simpson. Get one of those glass duck things that are balanced in the middle and keep dipping over. Set that next to the keyboard so it hits a key, open up notepad and let it peck away.
That one is great : ) Appreciate your humor. Come on, do we have a technical counterpart to generate a mouse event on Citrix terminal screen area once a few minates?
I don't have any other suggestions unless you can get the appropriate permissions or have someone with the appropriate permissions look at/make those changes.
Maybe the administrator could create a hybrid approach for your situation.  Mention the fact that you are using this for important company work, and the work is being lost when it logs you off, and can he/she work with you to somehow resolve that.