extjs4 - ExtJS Default Headers (token authorization) Page Refresh -


I have my Extras applications which successfully set I am setting up an authorization token so that I can access every Ajax call on my server. Can send :

  Success: function (feedback, opts) {var obj = Ext.decode (response.responseText); // set authToken access.Util.authToken = obj.data.SessionId; Ext.Ajax.defaultHeaders = {'Authority': 'Token' + obj.data.SessionId};  

This is working great now I apply Ext.ux.Router, so I can refresh my browser and stay where I was but I I know that when my browser refreshes I loose my defaultHeader token.

How to get a clue on solving this?

Cookie about saving this session ID ? And if it exists - use it, otherwise request a request.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -