boutique replica bags up ideas

the best replique rolex and prices here.

julia highlight 99j hair color 10a quality straight human hair lace front wigs 8 - 24 inches pre plucked hairline 13x4 inches lace front brazilian wig onlinefor sale

Set Expiration DateTime for the Cookie in ASP.NET

Updated on     Kisan Patel

This tutorial will explain you how to set DateTime when the cookie should expire in ASP.NET.

Default.aspx

<asp:Button ID="btnCookieSet" runat="server" Text="Set Cookie with Expire DateTime" 
OnClick="SetCookie" />


Default.aspx.cs

protected void SetCookie(object sender, EventArgs e)
{
 // set the cookie
 Response.Cookies["MyCookie"].Value = "My cookie data";
 Response.Cookies["MyCookie"].Expires = DateTime.Now.AddSeconds(5);
}

ASP.NET

Leave a Reply