• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Convert this to ascii?

BadNewsBears

Diamond Member
What format is the information in a cookie stored
ex.
a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3A3%3A%22851%22%3B%7D

This is nto hex, correct?
 
It's called HtmlEncoded, or something similar to that. .Net on Windows has an API to encode and decode strings encoded in that format.
 
It isn't hex, but yet it sort of is. It's an "escaped" string. But you will see the numbers following the "%" marks are really the hex values of the characters they are encoded for.

For example: %3A is ":", %7B is "{", etc. . .
You can see the values if you simply pull up the character map utility in windows.
The string you posted here translates to:

a:2:{s:11:"autologinid";s:0:"";s:6:"userid";s:3:"851";}

There is a javascript function available called escape() which puts strings into the format you originally posted and another called un-escape() (remove the "-", forum software will not allow me to post the word without it) which . . .well. . .unescapes. I used that method to "descramble" the string above from your original post.

It generates output similar to the encodeURI() method. It is basically translating all the characters in the string into a form that is suitable as a usable URI/URL. But basically if you know the hexadimal code equivalents, then you can figure out the translation yourself with just a character map.
 
Back
Top