CommunityServer笔记2
URL参数的封装
Porject:CommunityServerComponents
Dir:Components
File:CSContext.cs
授权
FormsAuthentication.SetAuthCookie(userToLogin.Username, autoLogin.Checked)
取当前用户名称
context.User.Identity.Name
| Konimeter的Blog主站 | Email: | koni@21cn.com | |
| Konimeter@Solartimes | QQ: | 670955 | |
| Konimeter@ShangXun | MSN: | konimeter@hotmail.com |
URL参数的封装
Porject:CommunityServerComponents
Dir:Components
File:CSContext.cs
授权
FormsAuthentication.SetAuthCookie(userToLogin.Username, autoLogin.Checked)
取当前用户名称
context.User.Identity.Name