sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Web dialog and cookies on Mac

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 4 Posters 110 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      slbaumgartner
      last edited by

      is there a trick to getting document.cookies to work in a Web Dialog on a Mac? I have a plugin that remembers user inputs on a web dialog by setting cookies. It works fine on Windows, but fails on a Mac. Debugging via the WebKit inspector seems to indicate that the cookies are never returned. They have a generous expiration date, so that's not it...

      Any insight appreciated!

      Thanks
      Steve

      [mod=:27bx1sya]Duplicate threads merged into one. -TT[/mod:27bx1sya]

      1 Reply Last reply Reply Quote 0
      • jeff hammondJ Offline
        jeff hammond
        last edited by

        i really doubt a user's preferences are going to affect this behavior you're experiencing but maybe just in case, fiddle with safari prefs..


        Privacy.jpg

        dotdotdot

        1 Reply Last reply Reply Quote 0
        • D Offline
          driven
          last edited by

          I've used dialog.allow_actions_from_host("*") to get things to work in the past.

          learn from the mistakes of others, you may not live long enough to make them all yourself...

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            Would it easier to use the LocalStorage interface instead of cookies ?

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              @driven said:

              I've used dialog.allow_actions_from_host("*") to get things to work in the past.

              That seems dangerous to me.

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • jeff hammondJ Offline
                jeff hammond
                last edited by

                oh.. hey.. just realized i accidentally stepped into the dev forum... let me tip toe my way back out of here..

                tip-toes his way back out of here

                dotdotdot

                1 Reply Last reply Reply Quote 0
                • S Offline
                  slbaumgartner
                  last edited by

                  @dan rathbun said:

                  Would it easier to use the LocalStorage interface instead of cookies ?

                  Dan,

                  Thanks for the tip! I tried it, and it not only works more portably, it is cleaner code.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement