having problems with redirects and javascript cookies…
a user enters my companies address
http://www.abetterway.co.uk/adviser/adviser_salesaids.html
but to see the contents of this area they have to agree to some terms first so they are redirected to an agree/disagree page. Because they were on the way to a page a cookie called OnTheWayTo is created and the URL the user entered is stored.
Once they agree to the terms then another Cookie is created called BetterWayTest to show they have agreed and they are redirected to the value stored in the OnTheWayTo cookie.
Once they get to that page it checks for the BetterWayTest cookie, this time it is there so they aren’t redirected.
Problem is this works fine in IE and on some Firefox browsers in my office but not all of them.
I can’t see any difference between the Firefox we have installed (they’re all different versions but have the same setting)
In Firefox the BetterWayTest cookie is being created (function called acceptterms() in the attached js file - saved as txt file) but it’s the redirect that doesn’t appear to be happening. Or it maybe the page it’s redirecting it to is redirecting back but I can’t find any evidence of that
**weird thing is **the redirect works if I add an alert to the relocate function
Any help is greatly appreciated