I am a novice at this, so pardon if this is a stupid question. Does safari need a special way to set/read cookies?
IFAIK, I should be able to set a cookie by using document.cookie=“name=value;” and display it simply with alert(document.cookie). This doesnt seem to work with safari tho; i don’t know if its not setting the cookie or just failing to display. does Safari require a special way of reading or setting cookies?
PS
I did check my browser to make sure it was set to ACCEPT cookies.
As I don’t have a mac, and my Safari version is 4.0, I’m not 100% sure the settings are in the same place, or even if they look the same, but my settings for cookies are as follows:
1.) Location: Settings(the little “gear” button) > Preferences > Security (middle of the panel)
2.) Options: Always, Never, and “Only from sites I visit” (disables 3rd party cookies)
I have mine set for the third option. I’m not sure if this helps, but I’m hoping it does.