ColdFusion的跨站身份验证 [英] Coldfusion Cross site authentication

查看:152
本文介绍了ColdFusion的跨站身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好了,在ColdFusion站点我的工作我刚刚安装了一个第三方(开源)CF被称为帆船论坛。

Ok, so on the coldfusion site I'm working on I just installed a third party (open source) CF forum known as "Galleon".

我问过类似的问题有点前,但现在我们已经进步了一点。

I asked a similar question a bit ago but now we have progressed a bit.

目前的问题是,它不会承认存在的父网站正确的-any-变量(会话等)。论坛本身存储在网站目录中的子文件夹内。但是,当我们试图输出会话变量,我们知道没有过期或诸如此类的东西,它吐出一个错误,不承认他们。

The issue at hand is that it will not recognize -any- variables (sessions, etc) that exist of the parent site proper. The forum itself is stored inside of a sub folder within the site directory.. But when we try to output session variables, which we know have not expired or whatnot, it spits out an error and doesn't recognize them.

我扫描任何清除变量(如structclear(会话)等),不转了多少..是否有某种在application.cfm设定的我应该知道的?

I scanned for anything that clears variables (like structclear(session), etc) and didn't turn up much.. Is there some kind of setting in application.cfm I should be aware of?

在一般你怎么弄跨应用程序验证回事CF?

In general how do you get cross application authentication going on CF?

我们想要做的是基于填充关闭时创建的现有session.userid变量的一个新的会话变量,当用户登录到主站点。我们希望这个,所以我们可以绕过不必要求他们重新登录在进入帆船论坛(而这一切导致并发症)。

What we want to do is populate a new session variable based off of the existing session.userid variable that is created when the user logs onto the main site. We want this so we can bypass having to ask them to login in AGAIN into the Galleon forum (and all the complications this causes).

推荐答案

这是非常可能的,在论坛的的Application.cfc,你需要延长根的Application.cfc。然后,您将更新论坛的onApplicationStart()到别的之前调用 super.onApplicationStart()。同样可以为每一个功能的Application.cfc是真实的,这取决于家长的Application.cfc发生了什么事情。

It's very possible that in the forum's Application.cfc, you'll need to extend the root Application.cfc. Then you'll update the forum's onApplicationStart() to call super.onApplicationStart() before anything else. The same may be true for each Application.cfc function, depending on what's going on in the parent Application.cfc.

大帆船的的Application.cfc将不再需要在父母的Application.cfc应用程序的名称和其他变量的设置(如@Ben说明)。

Galleon's Application.cfc would no longer need the application name and other variables setup in the parent Application.cfc (like @Ben noted).

这篇关于ColdFusion的跨站身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆