首页 > 解决方案 > 如何在没有asp.net的xampp中在客户端检索当前Windows用户名

问题描述

我正在尝试在我的网站中检索 windows 当前用户名以显示它。我知道在 asp.net 中是可能的

HttpContext.Current.User.Identity.Name

我如何在没有asp.net 的情况下通过使用javascript、python 或php 来实现这一点。

也在php中使用

getenv("username")

给我服务器系统的当前用户,但我想要客户端系统的用户名

标签: javascriptphppython-3.xhtml

解决方案


推荐阅读