[CLOSED] Cookies

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Cookies

    Hello

    Is there a way how to add additional cookie to direct method call?

    And how to read Cookies ? Ext.util.Cookies is not present

    Thanks
    Zdenek
    Last edited by fabricio.murta; Jan 21, 2017 at 2:57 PM. Reason: no user feedback for 7+ days
  2. #2
    Hello @Zdenek!

    I think Sencha just forgot to move the class to Core (common to Classic and Modern) and the feature went missing. But rather, it probably didn't happen because there will be changes necessary in order for the class to work with the modern API.

    I see this open thread in Sencha since july 2015: Ext.util.Cookies belongs to classic toolkit.

    There's a chance just copypasting the class from Ext.NET (not mobile) would work just fine. You can find the Ext.util.Cookie in a separate file under src/Build/Ext.Net/extjs/extjs-sources/classic/classic/src/util/Cookies.js in the Ext.NET source package.

    Worth a try?
    Fabrício Murta
    Developer & Support Expert
  3. #3
    OK
    is there a chance to add cookie to direct method request?

    (basically I want to read cookies from one domain and send those to another domain)

    Thanks
  4. #4
    Hello Zdenek!

    Wouldn't that be a matter of fetching the cookie and passing it to the direct method as parameter? And for a direct event encapsulated with the form with ExtraParameters?
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Well - that something else I would say - for example for Formsauthentication - cookie must be present already before it touch any handler
  6. #6
    Well, I don't see any problem using cookies server-side with Ext.NET Mobile. But I wonder what's the scenario you are in and in which way you want to use cookies. Maybe if you give an example on how you are using it we can help you figure out how to handle it. Still, maybe it is a good shot before to just try to import Ext.util.Cookies as pointed above.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 1
    Last Post: Jan 05, 2016, 2:49 PM
  2. [CLOSED] Cookies : Read value from key
    By matrixwebtech in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 23, 2015, 4:34 AM
  3. How to save user data in browser cookies
    By QuAzI in forum 2.x Help
    Replies: 1
    Last Post: Jun 05, 2014, 1:47 PM
  4. How to Set Cookies?
    By gdboy2002 in forum 1.x Help
    Replies: 5
    Last Post: Nov 30, 2011, 4:43 PM
  5. [CLOSED] Saving grid panel settings in cookies.
    By Jean-Pierre Poulin in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 24, 2010, 5:03 PM

Posting Permissions