您的位置:首页 > 其它

sharepoint匿名实现的另一种方法

2010-09-27 16:16 260 查看
1. 新建一个区域 82

2. 设置MemberShipProvider

代码

<script RunAt='server'>
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{
string cookieName = FormsAuthentication.FormsCookieName;
HttpCookie authCookie = Context.Request.Cookies[cookieName];
if (authCookie == null)
{
FormsAuthentication.SetAuthCookie("guest", false);
}
}
</script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: