After IT Administrators enable the ‘requireTokenConsistency’ parameter to ‘true’ on StoreFront’s ‘store’ configuration file (C:\inetpub\wwwroot\Citrix\<StoreName>\Web.config) users might not be able to access the resources.
This feature is used to allow SmartAccess conditions to be passed from StoreFront server to the XML servers for either XenApp or XenDesktop farms. Users login through Access Gateway to the Receiver for Web site, might receive the following error message:
“Your logon has expired. Please log on again to continue.”
The error might also be seen when the users try to subscribe to an application from the application catalog (under All Apps).
Checking the Citrix StoreFront server Event Viewer > Citrix Delivery Services, the following error message can be observed:Log Name: Citrix Delivery Services Source:WebApplication Date:9/13/2012 12:49:58 PM Event ID:23 Task Category: (2001) Level:Warning Keywords:Classic User:N/A Computer:example.amc.ctx Description: Gateway data from the request and the authentication token are not matching. Request was made to store <StoreName> Request data: Remote Address: X-Citrix-Via: X-Citrix-Gateway: X-Forwarded-For: Token data: Remote Address: X-Citrix-Via: ag5.user.ctx X-Citrix-Gateway: X-Forwarded-For: 10.10.10.10 Gateway configuration: System.String[]
In addition, the issue might be seen on Access Gateway 5.0.4 (Access Controller mode), 9.3 or 10.x connecting to a Citrix StoreFront 1.2 version.
Note: The issue has not been witnessed when Citrix Receiver is used to connect to a ‘store’.
There is a limited release fix available at CTX138462 - Receiver Storefront 1.2 Update 2 for Web Receiver Add-in
This is because of Receiver for the Web component not sending the appropriate Gateway HTTP headers in all of its requests to the StoreFront Services component. Example:
Non-working scenarioRequest data:
Remote Address:
X-Citrix-Via:
X-Citrix-Gateway:
X-Forwarded-For:
Working scenario
Request data:
Remote Address:
X-Citrix-Via: ag5.user.ctx
X-Citrix-Gateway:
X-Forwarded-For: 10.10.10.10