Results 1 to 2 of 2

Thread: Set Cookie not working in IE

  1. #1
    Sencha Premium User
    Join Date
    Aug 2010
    Posts
    4

    Default Set Cookie not working in IE

    I have created cookie state provider object to store the 'id' in cookie
    The cookie variable values are available even after refreshing the page in firefox and crome browser. But the cookies are cleared in IE when i refresh the page.
    Here is my code:

    cookie = new Ext.state.CookieProvider({
    path: "/",
    expires: new Date(new Date().getTime()+(1000*60*60*4)), // 4 hours
    domain: ""
    });
    Ext.state.Manager.setProvider(cookie);

    Ext.state.Manager.set('abc','20');

    Please help me fix this problem for IE

    Thanks,
    Ambarish

  2. #2
    Sencha User Screamy's Avatar
    Join Date
    Jun 2008
    Posts
    244

    Default

    As far as I can tell, your code looks syntactically correct, though I'm not sure how IE handles an empty domain String.

    Could it be an IE setting?

    Tools -> Internet Options -> Advanced -> Empty temporary internet files when browser is closed.

Similar Threads

  1. Cookie provider is not working for me (2.2.1)
    By rlieving in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 5 Mar 2012, 10:05 AM
  2. How to set the cookie with an expiration date?
    By Elijah in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 5 May 2010, 10:18 AM
  3. Set row removed cookie??
    By pllee in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 1 Dec 2009, 1:57 PM
  4. Cookie Provider not working
    By vayumahesh in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Oct 2009, 1:39 PM
  5. [SOLVED]Cookie writing not working (?)
    By fzammetti in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 28 Dec 2008, 10:36 PM

Posting Permissions

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