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..
 
Back
Top