예제 #1
0
        public static UserInfo GetUserInfo()
        {
            UserInfo userInfo = null;

            var context  = HttpContext.Current;
            var request  = context.Request;
            var response = context.Response;

            var token = request.Cookies[OwnRequest.SESSION_NAME];

            if (token == null)
            {
                return(null);
            }

            userInfo = SSOUtil.GetUserInfo(token.Value);

            return(userInfo);
        }
예제 #2
0
        public static UserInfo GetUserInfo()
        {
            UserInfo userInfo = null;

            var context  = HttpContext.Current;
            var request  = context.Request;
            var response = context.Response;

            var token = request.Cookies[OwnRequest.SESSION_NAME];

            if (token == null)
            {
                return(null);
            }

            userInfo = SSOUtil.GetUserInfo(token.Value);

            //userInfo = new UserInfo();
            //userInfo.Token = "1";
            //userInfo.UserId = 1000;
            //userInfo.UserName = "******";

            return(userInfo);
        }