【问题标题】:ColdFusion client variablesColdFusion 客户端变量
【发布时间】: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"; 您是否看到该数据库的更新?

标签: coldfusion coldfusion-10


【解决方案1】:

我在网站上遇到了同样的问题,并通过使用 setdomaincookies="yes" 解决了它

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-20
    相关资源
    最近更新 更多