Ask Your Computer Question. Computer Experts Answer You ASAP.

(Not a Computer Question?)

Safari/Opera will not store cookies from a page run from
Sent to Computer Experts June 11 05:57 PM

How can I use cookies for a locally installed HTML application on the MAC.
Prefer Safari as the target browser.

 

Optional Information:
OS: Mac OS X; Browser: Other

Already Tried:
App runs from the internet, ie: stores cookies, but not from intranet or when installed locally.

Customer (name blocked for privacy)
Answer
June 11 7:44 PM (1 hour and 47 minutes and 40 seconds later)
         
REPLIEDCheck Mark
I assume you are trying to directly access the files that make up the webapp.

Try running the webapp through the webserver on Mac OS X (Apache, installed by default). To turn on the webserver, open the System Pref. "Sharing" and turn on "Personal Web Sharing".

To do this, if it is just HTML files, move the files into one of the users's Sites folder. Then use the URL
http://<computer ip address>/~<username>/<filename>.html

Or put them in /Library/WebServer/Documents/
and use the URL:
http://<computer ip address>/<filename>.html


I've had trouble with scripts before and they work if run via the webserver.


Thank you.
Please choose accept if this is what you are looking for.

Reply
June 12 12:26 AM (4 hours and 41 minutes and 13 seconds later)
         
Reply to RoeIncarnate's Post: I'm afraid this will not do. The application will run in an education environment, from a CD/DVD or from a file server on the local network. Though testing has been done over the internet, it is just too big to download in a timely manner, very graphics intensive.

I was hoping for something like IE's "Mark of the WEB" that I can add to the HTML pages. This problem appears to be a bug in MAC OS X, and has been reported. Installing as you describe will not be allowed on school Lab machines.

Any other ideas would be appreciated.
Reply
June 12 3:29 AM (1 hour and 34 minutes and 14 seconds later)
         
Javascript setcookie , getcookie etc.

BTW the cookie permissions are correctly set in for Safari.

Edited by Customer (name blocked for privacy) on June 12 2007 at 3:34 AM
Answer
June 12 3:37 AM (8 minutes and 12 seconds later)
         
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
Reply
June 12 1:00 PM (9 hours and 23 minutes and 22 seconds later)
         
Just loaded it. Firefox and Opera work! Go figure. However, Safari is the supported browser for this app. since it is delivered with and "suppoprted" by Mac. Does Safari use a different cookie syntax/format?
Answer
June 12 1:26 PM (25 minutes and 36 seconds later)
         
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
1 Other Expert Agrees with this!
Reply
June 12 1:51 PM (24 minutes and 56 seconds later)
         
Good idea, but I already do a test like this, I moved your code into a test file as well, and it reports "No Cookies" for Safari, and "Got Cookies" for Opera and FireFox. I have tried to report this as a bug to MAC, never had a response. We will be rolling this app out in a couple months and this issue is heating up.
Answer
June 12 1:56 PM (5 minutes and 27 seconds later)
         
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
Reply
June 12 5:59 PM (4 hours and 2 minutes and 58 seconds later)
         
Has this been tested? Major change to the app that sets placemarks for the app via cookies, just to work around a bug in Safari. But may be only choice.
Answer
June 12 6:06 PM (7 minutes and 21 seconds later)
         
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
Reply
June 12 6:42 PM (35 minutes and 11 seconds later)
         
Tks Roe, I appreciate your input. I will persue further with the Apple forum. I am a developer as well. I will accept your answer to reward your efforts, even though the answer clearly is a fix to Safari. We will reeval. our support of Safari if this is not fixed SOON. Shame, if they don't think this is a bug, but a security feature. There are hundreds of eBook applications that will not run on Safari if this is not fixed.
Answer
June 12 6:48 PM (6 minutes and 12 seconds later)
         
ACCEPTEDCheck Mark
If you are a developer with Apple and have a select or premier account with them, you could use your tech. support incident to get this fixed or find an Apple workaround. developer.apple.com

I was wondering if this was a security feature too.

Good luck, and thank you for using JA.


Thank you.
Please choose accept if this is what you are looking for.

Think you can answer this question?
Login or Become an Expert

 

DISCLAIMER: You acknowledge that any information you may obtain from individuals you contact through use of the Just Answer service comes from those individuals, not from Just Answer!, and that Just Answer is not in any way responsible for any of the information these third parties may supply. The site and services are provided "as is" with no warranty and no representations are made regarding the qualification of an Expert. Responses and comments on Just Answer! are for general information and are not intended to substitute for informed professional advice (such as medical, legal, investment or accounting) and do not establish a professional-client relationship. Just Answer! is not intended or designed to address EMERGENCY QUESTIONS which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service.

Just Answer! > Computer and Software Help