Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Login script starts everytime I clik on a published application

Posted on 2006-10-27
Medium Priority
Last Modified: 2010-08-05
Hi Guys,

I`m wondering if theres a way to prevent the loginscript everytime I click on an application? I would like to set it only when we start the 1st citrix application or when we start the ICA client.

Question by:DeNzMoR
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Author Comment

ID: 17818705
the logonscript doesnt start at all time, but maybe theres somewhere I need to increase a timed out value?
LVL 19

Expert Comment

ID: 17820222
Are you using Seamless connections?  Try that out and see if you are launching a second session or piggybacking the first.  The server should be able to launch subsequent sessions from the first if your options are set right.  Experiment with a test user and a login script with a pause at the end so you can really see if it is launching the second and additional times.  
I think the option you want it called "session sharing".  
LVL 15

Accepted Solution

nprignano earned 1500 total points
ID: 17823448
BLipman is right about session sharing - this is when you have a app running on a given server and you launch the scond, the new app uses the same session as the first, so the logon script does not run again.  Read this to set it up and/or troubleshoot it if you are already using it:     http://www.brianmadden.com/content/content.asp?ID=450

However, the logon script will run for each new connection to a server, so if you have certain apps that run different servers, first connections to a server will still always draw the logon script.

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!


Author Comment

ID: 17850305
thanks guys for the reply

I`m using the seamless session, but I will try the session sharing.

Author Comment

ID: 17850923
For instance, I have 2 servers with load balancing.... For example, if I open Word, its going to open an ica session on citrix_1 and if I wait 10 min, the loadbalancing might redirect my 2nd application on the citrix2. Is there a way to force that the same user as to be connected on the same server.

For example, If I open an application on citrix_1, I want to stay on citrix_1 till I log out.

LVL 15

Expert Comment

ID: 17874674
If session sharing is working, you will continue to launch all apps published to that same server on the same server - load balancing will only apply to connections to new servers.  If you happen to be running on two servers, when you launch an app published to both servers, load balancing metrics will determine which server the app will run on.

Here is an example:
AppA published to server0
AppB published to server1
AppC published to server0 and server2
AppD published to server1 and server2
AppE published to server0, server1 and server2

You log on and launch AppA and AppB - logon/connection process runs for both apps.  You now have active connections to server0 and server1, but not server2.

You next launch AppC, and it automatically launches onto server0 as you have a connection to that server already - load balancing metrics do not apply.

You next launch AppD, same scenario as AppC, the app automatically launches onto server1 and load balancing does not apply.  At this point, you still have connections to server0 and server1.

Now you launch AppE, this time, load balancing metrics determine which server the app will launch on, but will only launch to either server0 or server1, not server2 as you are not connected to that server.

When you break it down, this makes foresight into the design of your Citrix farm even more important - even with load balancing in place, you still have the potential to have one or more servers in you farm overloaded, while other servers are practically untouched, depending on the design of your system (where you publish your apps).  Many admins will choose to desgin their network with only one app published to a server (many servers in the farm) or every app to every server (fewer servers in the farm) to avoid this issue from occurring.

Good luck.



Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenDesktop, Citrix Studio, Citrix Policies, Citrix XenApp
Several part series to implement Internet Explorer 11 Enterprise Mode
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question