Temp Code
Replace a text from a string in mySQL table update tbl_Questions set question=replace(question,' 2021-2022','') where Cookie HttpCookie myCookie = new HttpCookie( "MyTestCookie" ); DateTime now = DateTime.Now; // Set the cookie value. myCookie.Value = now.ToString(); // Set the cookie expiration date. myCookie.Expires = now.AddMinutes( 1 ); // Add the cookie. Response.Cookies.Add(myCookie); Which suits your needs more likely.