【发布时间】:2013-10-30 02:04:26
【问题描述】:
我在 ColdFusion 10 中遇到客户端变量问题。当我在一个页面中创建客户端变量时,它只会影响该页面,并且我无法在我的应用程序的另一个页面中访问这些变量。这是来自 Application.cfc 的代码:
this.Name = "test";
this.ApplicationTimeout = CreateTimeSpan(0,0,0,0);
this.ClientManagement= "yes";
this.ClientStorage = "clientstorage";
this.SessionManagement = true;
this.SessionTimeout = CreateTimeSpan( 0, 0, 20, 0 );
this.SetClientCookies = "yes";
this.SetDomainCookies = "no";
this.ScriptProtect = "all";
【问题讨论】:
-
是不是因为您的应用程序设置为每次请求都超时?不过,我不确定这会如何影响客户端变量。
-
您有名为
clientstorage的数据源吗?因为您正在设置this.ClientStorage = "clientstorage";您是否看到该数据库的更新?