 <p>try with below code :-</p> <pre><code>if (Request.Cookies["AdminPrintModule"] != null) { HttpCookie cookie = Request.Cookies["AdminPrintModule"]; test = cookie["PrinterSetting2"].ToString(); } </code></pre> <p>Have a look at this document <a href="http://www.c-sharpcorner.com/uploadfile/annathurai/cookies-in-Asp-Net/" rel="nofollow">http://www.c-sharpcorner.com/uploadfile/annathurai/cookies-in-Asp-Net/</a> :-</p> <p>Below are few types to write and read cookies :-</p> <blockquote> <p>Non-Persist Cookie - A cookie has expired time Which is called as Non-Persist Cookie </p> <p>How to create a cookie? Its really easy to create a cookie in the Asp.Net with help of Response object or HttpCookie </p> <blockquote> <p>Example 1: </p> <pre><code> HttpCookie userInfo = new HttpCookie("userInfo"); userInfo["UserName"] = "Annathurai"; userInfo["UserColor"] = "Black"; userInfo.Expires.Add(new TimeSpan(0, 1, 0)); Response.Cookies.Add(userInfo); </code></pre> <p>Example 2: </p> <pre><code> Response.Cookies["userName"].Value = "Annathurai"; Response.Cookies["userColor"].Value = "Black"; </code></pre> <p><strong>How to retrieve from cookie?</strong> </p> <p>Its easy way to retrieve cookie value form cookes by help of Request object. Example 1: </p> <pre><code> string User_Name = string.Empty; string User_Color = string.Empty; User_Name = Request.Cookies["userName"].Value; User_Color = Request.Cookies["userColor"].Value; </code></pre> <p>Example 2: </p> <pre><code> string User_name = string.Empty; string User_color = string.Empty; HttpCookie reqCookies = Request.Cookies["userInfo"]; if (reqCookies != null) { User_name = reqCookies["UserName"].ToString(); User_color = reqCookies["UserColor"].ToString(); } </code></pre> </blockquote> </blockquote>