hi
It is possible that write expiration date , time seprately of cookie..............?
Cookies Expires
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Aug 5, 2011, 11:11 PM EDT
Response.Cookies["userInfo"]["userName"] = "patrick";
Response.Cookies["userInfo"]["lastVisit"] = DateTime.Now.ToString();
Response.Cookies["userInfo"].Expires = DateTime.Now.AddDays(1);
Response.Cookies["MyCookie"].Value = "cookie data";
Response.Cookies["MyCookie"].Expires = DateTime.Now.AddSeconds(50);
Refer these Link1 and Link2 for more info..........
hope this help you..........
Smart LuckyRank #2,625 · 531 reputationPosted Aug 5, 2011, 11:42 PM EDT
More Than One Value cookies...?
Om prakash Singh126 reputationPosted Aug 6, 2011, 2:42 AM EDT
Response.Write(Request.Cookies["userInfo"]["lastVisit"]);
Response.Write(Request.Cookies["userInfo"].Expires);
Smart LuckyRank #2,625 · 531 reputationPosted Aug 7, 2011, 10:29 PM EDT
Om prakash Singh126 reputationPosted Aug 9, 2011, 12:18 AM EDT