Author: baburk | Posted on: 9/22/2009 4:41:21 AM | Views : 427

Hi all,


I had created a cookie after authentication in the signin form.
HttpCookie cidCookie = new HttpCookie ("userInfo");
        //for the cookie "userInfo" create key and add the value to it
        cidCookie.Values.Add("CustomerEmail", Convert.ToString (Session["CustomerEmail"]));
        cidCookie.Values.Add("CustomerID", Convert.ToString (Session["CustomerID"]));
        cidCookie.Values.Add("IsAdmin", Convert.ToString (Session["IsAdmin"]));

        cidCookie.Expires = DateTime.Now.AddMinutes (90);
        Response.Cookies.Add (cidCookie);


Then I worte this code in global.asax

 &nb ...

Go to the complete details ...