AUTH_USER和REMOTE_USER cgi变量之间的区别 [英] Difference between AUTH_USER and REMOTE_USER cgi variables

查看:183
本文介绍了AUTH_USER和REMOTE_USER cgi变量之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档对此并不完全清楚 - 这些变量之间是否存在差异?在IIS上,至少它们看起来是相同的,但如果它在其他服务器下可能不同,我不想依赖它。

The docs aren't entirely clear on this - is there a difference between these variables? On IIS at least they appear to be identical, but I don't want to rely on that if it might be different under other servers.

推荐答案

根据Adobe ColdFusion文档,它们是相同的。

According to the Adobe ColdFusion documentation they are the same.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Expressions_8.html

查看openbd源代码,remote_user和auth_user映射到相同的键,因此它返回相同的值。

Looking at the openbd source code, the remote_user and the auth_user are mapped to the same key, so it returns the same value.

查看铁路源代码,我不太了解发生了什么,但它似乎是设置remote_user,我不确定是否在任何地方设置了auth_user。

Looking at the railo source code, I'm not quite understanding what is going on, but it appears to be setting remote_user, and I'm not sure if auth_user is being set anywhere.

如果你正在设计兼容的应用程序使用coldfusion,railo和openbd,使用remote_user似乎更安全。也许其他人可以评论,因为我没有花时间进行深入调查,因此我不完全理解代码。

If you are designing an app that is compatible with coldfusion, railo, and openbd, it appears safer to use remote_user. Maybe someone else can comment because I don't fully understand the code without taking the time to investigate deeply.

这篇关于AUTH_USER和REMOTE_USER cgi变量之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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