我正试图在马夫茨安排一次会议,以储存访问该网站的现有用户。 例如:
A user visits the site. It gets recorded to the database as a login. When the user closes his browser. The session is over.
With Windows Authentication I can get the user name with this
User.Identity.Name
在这次活动中,我希望我能够这样做:
@{
var Data = HttpContext.Current.Session["UserSession"];
Data["UserSession"] = User.Identity.Name;
}
但我可以说。 建立一个会议变数并把它视为我用户身份的价值,是适当的辛迪加。