Customize Citrix Storefront logoff behavior

The default Citrix Storefront logoff behavior inside Citrix Gateway redirects the users to page /cgi/logout, which by default presents a basic white background html page with the message "Logoff is successful". In order to change this behavior and redirect to the actual Citrix gateway logon page after logoff, we need to configure the following Responder action and policy and bind it to the Citrix Gateway vserver object. Note that instead of the HTTP.REQ.HOSTNAME.HTTP_URL_SAFE URL you can use a custom /vpn/logout.html page with your own branding.

add responder action Storefront_logoff_redirect redirect \"https://\" + HTTP.REQ.HOSTNAME.HTTP_URL_SAFE -responseStatusCode 302

add responder policy logoff_redirect_pol "HTTP.REQ.URL.CONTAINS(\"/cgi/logout\")" Storefront_logoff_redirect

bind vpn vserver <NameOfNetScalerGatewayVserver> -policy logoff_redirect_pol -priority 100 -gotoPriorityExpression END -type REQUEST

For instructions step-by-step on setting the above via the Netscaler GUI, you can refer to the Carl Stalhood article below:

https://www.carlstalhood.com/netscaler-gateway-12-ica-proxy/#logoff

You can find more detailed guidance and step-by-step procedures for analyzing and troubleshooting Citrix Virtual Apps and Desktops organized by category in my Citrix Virtual Apps and Desktops Troubleshooting e-book.

Powered by BetterDocs