1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Widget Problem, trying to access Safaris cookies.

Discussion in 'Mac Programming' started by md11, Mar 28, 2009.

  1. macrumors member

    I designed a Dashboard widget with Dashcode, which logs into a website and retrieves data.
    Works all.
    But the login to the website is also possible with a permanent login option, which then sets a sessionID-cookie with an expiry date in 2012.
    If this function is turned on in the browser, the widget does not work. Is there a way to get the cookie from safari into the widget? All my tries with document.cookie did not work out - when I know how to access the cookies from the widget, I can finish by myself, but I have no idea how to get to the local file.
    Anybody has an idea?
  2. macrumors member

    That would be very difficult. It'd probably involve Terminal. I don't know how... :confused:
  3. macrumors member

    Thank you, I supposed so - maybe anyone else knows an easier way to the cookies.
  4. macrumors member

    Ok, an update for anybody facing somewhen the same problem:
    I used the widget.system command to access the terminal, and there I am using the Grep command.

Share This Page