How to not send cookies to ExtJS HTTPRequest

I have an application using ExtJS on the front panel and TurboGears on the server. Now I started adding cookies to control the front-end configuration using the CookieProvider state manager. This is cool, but cookies are sent every time they are called, and these cookies are significant. I have problems with a performance hit.

Long and short, is there a way to block certain cookies for sending to server calls?

  • Dave
+3
source share
4 answers

, : . init_component. . "" "/

FYI: gotchas :

  • ( ) , .
  • ( )

, , . , , ...

0

, , HTML 5 cookie.

, - , .

, , .

+1

ExtJS ( , , JS AJAX- Java, , , ), AJAX- ExtJS . , , Ext.Ajax, , , "; jsessionid =" URL-.

0

I believe that your last answer is correct ... but you should share it instead of glazing it ... I believe that you use the parameters in this way, if it is not, I believe that you are doing something what are you trying to do.

Ext.Ajax.Request({
    url: 'path/to/file.htm',
    params: {
        jsessionid:  Ext.util.Cookies.get('jsessionid')
    },
    success: function(result, request) {
        // Callback function for successful request
    }
});
0
source

Source: https://habr.com/ru/post/1753912/


All Articles