Use ActionFilterAttribute to check user logging
摘要:
public class CheckLoginAttribute : ActionFilterAttribute { public CheckLoginAttribute() { } public override void OnActionExecuting(ActionExecutingContext filterContext) { if (filterContext.HttpContext.Session["User"] == null) { ... 阅读全文
posted @ 2012-04-11 23:50 笑东风 阅读(227) 评论(0) 推荐(0) 编辑