Cookie question

  • Thread starter Thread starter DAvef
  • Start date Start date
D

DAvef

I set my cookie like below. when I post and go to the next page, I need to
add userDetails.lastName to that same cookie. How do I do that?

Dim UsernameCookie As HttpCookie
UsernameCookie = New HttpCookie("misc")
UsernameCookie.Values.Add("userID", userDetails.userID)
UsernameCookie.Values.Add("appId", userDetails.appId)
Response.AppendCookie(UsernameCookie)
 
if i understand you correctly, all you need to do is reaccess the cookie..

objCookie = Request.Cookies("mycookie")

then do the Add and Append as you are below..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cookies 1
Cookies 1
Cookies during error handling 1
httpCookie is null 4
cookies question 2
Cookies will not expire (noob question) 4
Cookie Question 1
where are cookies stored ? 5

Back
Top