Results 1 to 3 of 3

Thread: Cookie Values get escaped during POST request?

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    34

    Post Cookie Values get escaped during POST request?

    Hi,

    I am using Ext.state.CookieProvider for tracking some of the client data.
    I am setting the data using:

    Code:
     
    var myCookieProvider = new Ext.state.CookieProvider({name:"clientData"});
     
    //setting the value
    var value = '8_u_';
    myCookieProvider.set('test', value);
    When I check the post data or check it on server side, I see that the cookie value has been escaped:
    '8_u_' is sent as 's%3A8_u_' (extra 's%3A' added)
    '8$u$' is sent as 's%3A8%24u%24'. (extra 's%3A' added, $ escaped)

    How can I avoid this escaping ?

    Thanks.

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Posts
    34

    Post Cookie Values get escaped during POST request?

    After more debugging, observed that:
    Ext.state.Provider# encodeValue() is converting the cookie value '8_u_' to 's:8_u_'

    later it gets escaped to 's%3A8_u_'.

    The value should have been decoded while the request is sent. Is this a bug ?

    or is there any way to avoid this ?

    Thanks.

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    34

    Exclamation [Ext 3.0]CookieProvider Still facing the problem with cookie value sent with Request.

    I am still facing the issue.
    Do I need to handle the decoding at the server side ? or I am missing anything here ?

    Thanks.

Posting Permissions

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