Results 1 to 3 of 3

Thread: ASP Cookies Problem....

  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ASP Cookies Problem....

    Dear,

    I use Response.Cookies("t") = "abc-xyz" to write cookies but why when i check on cookies databases the result become abc%2Dxyz, - (dashed) become %2D

    how to fix? please help~!


  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's just the hex code representation of a dash. It should automatically get translated back into a dash when the cookie is read. If not, try a different character, like an underscore:

    zh_tw

    Or just use letters only.

    However, even if you need the dash, and it isn't getting translated back when the cookie is read, you should be able to unescape it back, either in javascript or VB on either the client or server side.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •