Skip to content

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.

  1. Triage: Review monitoring dashboards or error metrics for initial anomaly spikes or timeout signatures.
  2. Record Evidence: Export service diagnostic logs, event viewers, or failure traces.
  3. Analyze: Correlate error signatures against known infrastructure or configuration limits.
  4. Correlate: Match active incident timeline against recent deployments or scale events.
  5. Execute & Verify: Apply corrective remediation steps and verify telemetry baseline recovery.

5. Vendor Documentation & Validation Guardrails

Section titled “5. Vendor Documentation & Validation Guardrails”
  • Authority Reference: Cross-reference configuration changes against official vendor documentation.
  • Validation Gate: Require staging environment testing and Human-in-the-Loop SME approval before production changes.