protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (User.Identity.IsAuthenticated) { string result = SSOGeneralSameDomain.GetCookieValue("CookiesTest", this); txtUserData.Text = result; } } }
// GET: Home public ActionResult Index() { TempData["UserData"] = SSOGeneralSameDomain.GetCookieValue("CookiesTest", HttpContext); return(View()); }