Jump to content
Welcome to our new Citrix community!

Logoff redirection to different pages for internal / external users


IMG Support

Recommended Posts

I have 2 storefront 3.12.3 servers hosting a single store.  I have allowed both internal and remote access.  Internally users hit a load balanced VIP to hit storefront and externally the users use the netscaler gateway.  I have implemented the following code in the script.js file to logoff after a user has launched their app:

 

var delayLogoffInSeconds = 6;

CTXS.Extensions.beforeWebLogoffIca = function(action) {
    return 'none';
};

CTXS.Extensions.postLaunch = function(app, status) {
    if (! CTXS.Device.isNativeClient()) {
        if (status == CTXS.LAUNCH_SUCCESS) {
            function logoff() {
                CTXS.Environment.logOff();
                window.location.href = "https://internalvip.mydomain.com";
            }
            window.setTimeout(logoff, delayLogoffInSeconds * 1000);
        }
    }
};

 

This works just fine for internal users.  But for external users I want to redirect them back to the netscaler gateway logon page of https://nsgateway.mydomain.com.  Is there anyway to set this up on the same store?  Maybe a condition - if your internal go here, if your external go there?

Link to comment
Share on other sites

Thanks Sam.  This appears to work be redirecting them to the relative directory based on how they login.  However, its not actually logging them off of their netscaler session and in turn redirects back to the post login screen where they can select an application to launch. Im assuming I need more code to kick them back to the actual netscaler login page.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...