var getdiv1 = document.getElementById("div1");
var getdiv2 = document.getElementById("div2");
In Opera, the cookies get deleted but for some odd reason the last cookie doesn't get deleted till after the function is done running so the div elements stay visible. Very Strange...Any help with this matter will be greatly appreciated. Thank you.
This is where the problem becomes even stranger. Once the last cookie is removed, the alert shows the following:
So there are no cookies and the only thing remaining is the PhP session. Here's the strange part: When I added that line of code for the alert message, the function started working properly, as in the function hid the div elements after all the cookies were removed! Once I removed the alert code, it stopped working again. Weird right?