Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Cookies in ASP.NET


Message #1 by "Peter Lawrence" <peter.lawrence@p...> on Mon, 15 Apr 2002 13:04:11 +0100
Unless I am mistaken (always a possibility), cookies are different in
ASP.NET from ASP, as follows:

Writing a cookie with a space in it under ASP does an automatic URLEncode()
(it would seem - check this out by looking at the cookie in "Temporary
Internet Files" folder).

Reading that cookie under ASP does an automatic URLDecode, so the space is
correctly retrieved.

BUT - Reading that cookie under ASP.NET the space is shown as "+", so it
looks like an explicit URLDecode is required.

Is that behaviour expected? Is it documented?

Peter Lawrence


  Return to Index