A
André
Hi,
Not sure it's a asp.net problem, but i discovered it with asp.net, so ...
I need to pass data from page to another, so i use cookies for that. My
problem is that when a certain amount of cookies are created, the browser
doesn't render the page anymore. The threshold i found (with trial and
error) is this: 48 times 5 cookies.
If i put 49 instead of 48, the page is not rendered (error= "the page cannot
be rendered"), otherwise, below 49, it works.
Any explanation for that, and possibly a solution?
Thanks
André.
dim i as integer
Dim cokval As new HttpCookie("cok")
Dim cok1 As New HttpCookie("cok1")
Dim cok2 As New HttpCookie("cok2")
Dim cok3 As New HttpCookie("cok3")
Dim cok4 As New HttpCookie("cok4")
Dim cok5 As New HttpCookie("cok5")
for i=1 to 48
cok1.Value = 10
Response.Cookies.Add(cok1)
cok2.Value = 8
Response.Cookies.Add(cok2)
cok3.Value = 12
Response.Cookies.Add(cok3)
cok4.Value = 5
Response.Cookies.Add(cok4)
cok5.Value = 6
Response.Cookies.Add(cok5)
next
Not sure it's a asp.net problem, but i discovered it with asp.net, so ...
I need to pass data from page to another, so i use cookies for that. My
problem is that when a certain amount of cookies are created, the browser
doesn't render the page anymore. The threshold i found (with trial and
error) is this: 48 times 5 cookies.
If i put 49 instead of 48, the page is not rendered (error= "the page cannot
be rendered"), otherwise, below 49, it works.
Any explanation for that, and possibly a solution?
Thanks
André.
dim i as integer
Dim cokval As new HttpCookie("cok")
Dim cok1 As New HttpCookie("cok1")
Dim cok2 As New HttpCookie("cok2")
Dim cok3 As New HttpCookie("cok3")
Dim cok4 As New HttpCookie("cok4")
Dim cok5 As New HttpCookie("cok5")
for i=1 to 48
cok1.Value = 10
Response.Cookies.Add(cok1)
cok2.Value = 8
Response.Cookies.Add(cok2)
cok3.Value = 12
Response.Cookies.Add(cok3)
cok4.Value = 5
Response.Cookies.Add(cok4)
cok5.Value = 6
Response.Cookies.Add(cok5)
next