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