Exemplo n.º 1
0
        private void createSession(string guid, string Email, string role)
        {
            CustomerClass customer = new CustomerClass();

            customer.id    = guid;
            customer.Email = email = Email;
            customer.role  = role;

            Session["Userses"] = customer;
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Userses"] != null)
            {
                CustomerClass customer = (CustomerClass)Session["Userses"];
                email    = customer.Email;
                userrole = customer.role;
            }

            if (Session["Admins"] != null)
            {
                email = Session["Admins"].ToString();
            }
        }