I am trying to save state of accordion for testing purpose but it is not working. I am not getting any error. In my test.html page, I am referring the required .css file along with ext-all-debug.js and the following js file.The code of js file is as below. I am referring example provided on http://examples.extjs.eu/
You might test and see if that second link there works for you.
If so, you can leverage its code for your tests.
If not, then perhaps the issue is related to cookie management on your browser or browsers.
As an aside, when posting sample code snippets you should wrap your code using the code tags for thread readability.
Also, if you have an inline, un-tabbed, script example it would be benefit readability if you indent each code block (you can paste and beautify code here: http://jsbeautifier.org/).