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; }
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(); } }