PDA

View Full Version : Widget Problem, trying to access Safaris cookies.




md11
Mar 28, 2009, 09:24 AM
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



Awesomeness
Mar 28, 2009, 12:14 PM
That would be very difficult. It'd probably involve Terminal. I don't know how... :confused:

md11
Mar 29, 2009, 06:21 AM
That would be very difficult. It'd probably involve Terminal. I don't know how... :confused:

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

md11
Apr 2, 2009, 09:49 PM
Ok, an update for anybody facing somewhen the same problem:
I used the widget.system command (http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashboard_ProgTopics/Articles/CommandLine.html#//apple_ref/doc/uid/TP40003050) to access the terminal, and there I am using the Grep (http://www.computerhope.com/unix/ugrep.htm) command.