I am using C# in ASP (Microsoft Visual Studio.Net) to try and create a cookie. I have cookies enabled on both of my computers, but when I use the following code (I have also tried the commented line as well), no cookies are created. Sometimes the 'index.dat' file gets updated (as far a the last saved date, no reference inside the file), but nothing
NOTE: txt_Reg is a text bo
private void aRegUser(
//Response.Cookies["testRegUser"].Value = this.txt_Reg.Text
HttpCookie RegMyUser = new HttpCookie("testRegUser")
RegMyUser.Value = this.txt_Reg.Text
RegMyUser.Expires = DateTime.Now.AddMonths(1)
Response.Cookies.Add(RegMyUser)
}