方法一 .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;
.net & Sitecore 判断用户是否登陆,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/pangxiaohai/p/3718951.html