Widget Problem, trying to access Safaris cookies.

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

  1. macrumors member

    Joined:
    Jul 26, 2005
    Location:
    Europe
    #1
    Hi
    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?
    TIA
    Harry
     
  2. macrumors member

    Joined:
    Feb 12, 2009
    #2
    That would be very difficult. It'd probably involve Terminal. I don't know how... :confused:
     
  3. thread starter macrumors member

    Joined:
    Jul 26, 2005
    Location:
    Europe
    #3
    Thank you, I supposed so - maybe anyone else knows an easier way to the cookies.
     
  4. thread starter macrumors member

    Joined:
    Jul 26, 2005
    Location:
    Europe
    #4
    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