Hi,
Special values which uses %server, %session .. why does it not work? but the basic values work.

Do we need to add any other modules which will make those special values work.

Regards & Thanks,
Arvind

Comments

quicksketch’s picture

Please provide additional information about the %server, %session, etc. tokens "not working", including steps to reproduce.

Most likely what you're experiencing is that the tokens aren't being used for anonymous users (but do work for authenticated users), because they present a security/privacy problem when combined with the anonymous page cache. For example, you don't want something like %server['REMOTE_ADDRESS'] (the user's IP address) to be cached for one anonymous user and then displayed to another anonymous user because it's in the page cache. That's why tokens that are either URL-specific (like %get) or not included in the page cache (like %post) work but ones like %cookie, %session, and %server do not work with anonymous users. The help text for tokens provides similar description about certain tokens working for anonymous users.

quicksketch’s picture

Title: Token Values » Special token values (%server, %session) do not work
quicksketch’s picture

Status: Active » Closed (cannot reproduce)
IamOnStage’s picture

Is there a way to use the tokens for anonymous users that will print the current URL?