代码之家  ›  专栏  ›  技术社区  ›  Xander

FormsAuthentication.GetRedirectUrl需要用户名

  •  1
  • Xander  · 技术社区  · 14 年前

    FormsAuthentication.GetRedirectUrl

    2 回复  |  直到 14 年前
        1
  •  0
  •   A G    14 年前

    很可能.NET framework需要知道哪个用户被重定向了。记住服务器端有多个用户访问同一个应用程序。

    如果你真的想知道,用反射器检查一下系统.Web.Security.

        2
  •  1
  •   Chris Simmons Badrinarayanan Lakshmiraghavan    11 年前

    我也不明白为什么它需要它。如果你看 the source code ,它只是执行空检查。如果 userName

    还要注意的是 createPersistentCookie 根据 MS documentation 在代码中也很明显。