Hi i would like to know how can we set the cookie by just typing url for example, www.test.com/default.asp?field1=mark&name=john so when the user type in the url above, the two cookies will be set, which is field and name with the value mark and john. any replies, i'd appreciate. thanks

Loops through all of the QueryString variables and sets a cookie for each one.

For Each strKey in Request.QueryString
  Response.Cookies(strKey) = Request.QueryString(strKey)
Next

~ mellamokb

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.