Exemplo n.º 1
0
        //跳转的页面调用
        public ActionResult SSO()
        {
            //先创建令牌,再创建cookie
            SSOHelper.CreateCookie(LoginHelper.LoginUser.JobNo, "ksdflkjsd", 5);
            string url = Request.Url.Query;

            url = url.Substring(5, url.Length - 5);
            int index = url.IndexOf('&');

            if (index > -1)
            {
                url = url.Remove(index, 1);
                url = url.Insert(index, "?");
            }
            Response.Redirect(url);
            return(null);
            //return View();
        }