为什么LOGON_USER服务器变量为空在新的Windows /新标签? [英] Why is LOGON_USER Server Variable is blank on New Windows / New Tab?

查看:503
本文介绍了为什么LOGON_USER服务器变量为空在新的Windows /新标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们都注意到Server 2008中我们的应用程序使用的老同学的集成Windows身份验证,只是读 LOGIN_USER上基于.NET2-web应用程序的安装一些很奇怪的行为从请求收集服务器变量。有一个很好的理由,但是这有点风马牛不相及的问题,因为底层的 WindowsAuthentication 的从ASP.NET code做同样的事情。

We are noticing some very strange behavior on an installation of a .NET2-based webapp on Server 2008. Our app uses old school Integrated Windows Authentication and simply reads the LOGIN_USER server variable from the request collection. There's a good reason for this, but that's somewhat irrelevant to the question, since the underlying WindowsAuthentication code from ASP.NET does the same thing.

反正...


  • 当你进入在浏览器的URL,它加载了就好了,显示的用户名(从 LOGIN_USER )没问题。

  • 当您单击Web应用程序中的链接,它加载的页面就好了,没有任何问题,进行身份验证。

  • 如果您的硬刷新的(按Ctrl-F5)也工作得很好。

  • 但是,当您点击在新窗口中打开在新标签页打开, LOGON_USER 变量为空

  • When you enter the URL in the browser, it loads up just fine and displays the username (from LOGIN_USER) no problem.
  • When you click on a link within the web app, it loads the page just fine and authenticates without any problems.
  • When you hard refresh (Ctrl-F5) it also works just fine.
  • However, when you click open in a new window or open in a new tab, the LOGON_USER variable is blank

任何想法?我缺少一些的 IIS7 的设置的地方?

Any ideas? Am I missing some IIS7 setting somewhere?

测试客户端的Windows 7与IE8或Windows XP与IE6的。

Tested clients are Windows 7 with IE8 or Windows XP with IE6.

推荐答案

我经历了IIS6非常类似的东西在几年前。这个问题随后被匿名和Windows身份验证导致被打开的网站。关闭匿名身份验证解决了该问题。

I experienced something very similar on IIS6 a few years ago. The issue then was caused by both anonymous and windows authentication being turned on for the site. Turning off anonymous authentication fixed the issue.

虽然这是在IIS6它可能是寻找到。

Though this was on IIS6 it might be something to look into.

这篇关于为什么LOGON_USER服务器变量为空在新的Windows /新标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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