• Login
sketchucation logo sketchucation
  • Login
🔌 Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

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 4 Jan 2013, 02:48

    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
    • J Offline
      jeff hammond
      last edited by 4 Jan 2013, 03:06

      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 4 Jan 2013, 04:03

        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
        • D Offline
          Dan Rathbun
          last edited by 4 Jan 2013, 04:04

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

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dan Rathbun
            last edited by 4 Jan 2013, 04:05

            @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
            • J Offline
              jeff hammond
              last edited by 4 Jan 2013, 05:03

              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 4 Jan 2013, 15:50

                @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
                1 / 1
                • First post
                  1/7
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement