方法一 .net(C#)
//加入引用
using System.Web.Security;
//获取User
MembershipUser user = Membership.GetUser();
if(user ! = null)
{
//用户操作
user.UserName
user.Email
user.ChangePassword(string old,
string new)
}
方法二 Sitecore
//获取当前用户
Sitecore.Analytics.Data.DataAccess.DataSets.VisitorDataSet.VisitsRow vistor =
Sitecore.Analytics.Tracker.CurrentVisit;
时间: 2024-12-14 07:18:46