Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Translation of cookie data
12-12-2011, 09:04 PM #1
- Join Date
- Dec 2011
- Thanked 0 Times in 0 Posts
Translation of cookie data
I set a cookie called UserID. The data portion contains this format:
12-12-2011, 09:58 PM #2
*HOW* are you reading the cookie in VB??
If you are doing it as Request.Cookie("name") then you shouldn't be seeing that.
If you are trying to read the raw cookie data, then that is correct.
Cookies are encoded the same way Query Strings and Post data are. In ASP/VBScript code, you can explicitly unencode them using the VBScript function UnEscape but I don't know if VB has that function available.
Best would be to stop trying to read raw cookie data and allow the ASP Request object to do the decoding for you, if that's an available option for you.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.