cookie sets correctly in firefox, but not IE7?

i am able to set a cookie in firefox, but not in IE7.  the set code in javascript i am using is  

document.cookie += "splash=true";

cofcmgrAsked:
Who is Participating?
 
b0lsc0ttConnect With a Mentor IT ManagerCommented:
The suggested script is great and your line above is the bare minimum.  The issue could be related to IE7 needing the domain, path or something else.

Have a look at http:Q_22107054.html.  Are you using different protocols, domains, etc?

Please provide more info if you want help with your script.  The functions and "premade" solution above is really nice and might be all you need but we would just be guessing at the problem with just the little line above.

Let me know if you have a question.

bol
0
 
netsmithcentralCommented:
This page (http://www.quirksmode.org/js/cookies.html) gives three functions, createCookie, eraseCookie, and readCookie.  They are fully cross-browser.
0
 
b0lsc0ttIT ManagerCommented:
One other question, can you write or use a cookie successfully on your site using a server language or some other method.  The issue might just be (and often is) a cookie blocker or built-in browser "security" settings.  Even knowing that IE7 remembers your login here would help to know that cookies in general aren't blocked by IE7 on this computer.

bol
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
b0lsc0ttIT ManagerCommented:
I'm glad that helped.  Did you still have a question or need some help with this?  I noticed the B grade.  That seems a little odd since you never even posted a follow up.  It is nice to have a chance to earn the A or at least know why it wasn't earned.  I can definitely help more if you need it (and offered to help).

Thanks for the fun question.

bol
0
 
cofcmgrAuthor Commented:
sorry about that.  i was quickly going through my old open questions and closing them, briefly looking at content to eval.  you have been a great help and i will see if i can upgrade.  you earned it.
0
 
b0lsc0ttIT ManagerCommented:
Thanks!  I'm glad it was an accident and, more important, you did get the answer and info you needed.  That is great you are cleaning up your questions. :)

Let me know if you have a question about getting this changed.  It isn't hard to do; the moderators will help.

bol
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.