The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
setcookie("username", "$inputuser",time()+600,"/","",0);
it works fine when hosted on my computer but dosnt seem to set on freeola. I was told to change it to
setcookie("username", "$inputuser",time()+600,"/","www.gameslab.co.uk",0);
but still no joy
ob_start() at the top of the script and then flushing the buffer with ob_end_flush() just after you have set the cookie.
// *** A function to store a value in a cookie (MS-14.9.01) ***
function setCookieValue(cookieName,cookieValue,lifeSpanDays)
{
// Declare and initialise variables
expiryDate = new Date
expiryDate.setDate(expiryDate.getDate()+lifeSpanDays)
// Save data to cookie
document.cookie = cookieName + "=" + cookieValue + "; expires=" + expiryDate.toGMTString();
}