[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1105
  • Last Modified:

Won't Let Me Write Cookie

response.cookies("blah")= myReader("PSMem")

It won't let me write a cookie.  :(

Error:

Compiler Error Message: BC30526: Property 'Item' is 'ReadOnly'.
0
net_susan
Asked:
net_susan
1 Solution
 
laotzi2000Commented:
Try this:

response.cookies.add(new HttpCookie("blah", myReader("PSMem")))
0
 
bsdotnetCommented:
simply,
Response.Cookies("blah").Value = myReader("PSMem")
0
 
net_susanAuthor Commented:
>>Response.Cookies("blah").Value = myReader("PSMem")

Yeah, there was some other reason it wasn't writing it. After spending four hours on it, I slept on it and came up with another solution in five minutes. LOL
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now