Hi,

Has anyone written or know of any scripts extending the javascript cookie collection to handle asp and asp.net cookie subkeys

e.g. in classic ASP -
vb Code:
  1. <%
  2. ' Set Vals -
  3. ' syntax: Response.Cookies(NameofCookie)(NameofSubKey)=value
  4. Response.Cookies("PersonalDetails")("FirstName")="Michael"
  5. Response.Cookies("PersonalDetails")("SurName")="Wall"
  6. Response.Cookies("PersonalDetails")("CountryofBirth")="Ireland"
  7.  
  8. ' Retrieve Vals -
  9. ' syntax: Request.Cookies(NameofCookie)(NameofSubKey)
  10. Response.write Request.Cookies("PersonalDetails")("FirstName") & "<br>"
  11. Response.write Request.Cookies("PersonalDetails")("SurName") & "<br>"
  12. Response.write Request.Cookies("PersonalDetails")("CountryofBirth") & "<br>"
  13. %>

I'm pretty sure this can be done but don't want to spend hours reinventing the wheel

Cheers Al