【发布时间】:2011-07-18 10:09:47
【问题描述】:
我正在我的 Web 应用程序中为站点管理员设置 FormsAuthentication。这个问题涉及到:Using FormsAuthentication - 我现在的问题是;当管理员“成为现有用户”时,WebSecurity.CurrentUserId 是否填充了他已成为用户的当前用户 ID,还是仍然包含管理员的当前用户 ID?
如果是后者,我们怎样才能让WebSecurity.CurrentUserId 返回他当前冒充的用户的用户 ID?
【问题讨论】:
标签: c# .net asp.net authentication razor