Spaces stripped from cookie value

  • Thread starter Chris McFarling
  • Start date
C

Chris McFarling

I'm using an apsx page to write a date value to a cookie. I then need to
read that cookie with a classic asp page. The value is written correctly to
the cookie. If I view cookies for example in Firefox, it is formatted
properly. When reading the value via asp however, all of the spaces are
stripped out causing it to become an invalid date value.

As written:
2/5/2010 3:23:14 PM

As read:
2/5/20103:23:14PM

As a test I read the value using aspx and it was read correctly. So it
appears to be classic asp related. Any ideas why this is happening?
 
A

Alexey Smirnov

I'm using an apsx page to write a date value to a cookie. I then need to
read that cookie with a classic asp page. The value is written correctly to
the cookie. If I view cookies for example in Firefox, it is formatted
properly. When reading the value via asp however, all of the spaces are
stripped out causing it to become an invalid date value.

As written:
2/5/2010 3:23:14 PM

As read:
2/5/20103:23:14PM

As a test I read the value using aspx and it was read correctly. So it
appears to be classic asp related. Any ideas why this is happening?

I think they were saved in UTF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top