Hey guys, this is probbily a really simple script but I have searched the site and google but cant seen to find the answers im looking for.
Can someone put me straight on where im going wrong as i have no clue what to do
Thanks for your time,
I managed to find this script
but I dont think its finished. How do i tell it to redirect to index.php if the cookie is found etc. If anyone is willing, could they please finish this script?
var date = new Date();
var expires = "; expires="+date.toGMTString();
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++)
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);