[TOC] [Prev] [Next] [Bottom]



domainScopeKey

System scope only

This configuration variable sets the key for the domain scope; that is, what value Tango uses in order to determine which domain a request originated from and the value it uses as a key to find domain variables internally.

The default value is <@CIPHER action=hash str="<@CGIPARAM server_name>>. This uses an encrypted form of the domain. The value of the domainScopeKey cannot be greater than 32 characters. <@CIPHER action=hash> always results in a 32 character string.

When you assign a value to domainScopeKey, you must tell Tango Server to evaluate the meta tag only when domain variables need to be keyed. This is done with the <@LITERAL> meta tag.

For more information, see "<@LITERAL>" .

For example, the syntax of the assignment to userKey of its default value would be as follows:

<@ASSIGN NAME=domainScopeKey VALUE=
<@LITERAL VALUE="<@CIPHER action=hash
str='<@CGIPARAM server_name>>'>


!Tip: It may sometimes be necessary to add security to domainScopeKey, for example, if one copy of Tango is serving application files from several different domains and the system administrator wanted to prevent the administrators of each domain from using the encrypted form of the domain as the scope setting that would give them access to another domain's variables.

You can add a password to the value of domainScopeKey, that is:

<@CIPHER action=hash str="<@CGIPARAM server_name>password">

(Substitute your own value for password.)


Because other administrators would not know the password, they could not generate the correct string that is used as domainScopeKey.



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.