I have this one function that checks to see if a user is valid by looking for a cookie. It is not always correct, because sometimes it needs to be refreshed, so I put a meta refersh in the function. The code now looks like this:
function checkvaliduser() {
echo "<META HTTP-EQUIV=REFRESH CONTENT=0;>";
if (empty($_COOKIE[siteuser])) {
return false;
}
else {
return true;
}
}
How ever, it gets to the meta refresh, and refreshes the page, then starts over, and keeps refreshing the page. Is there a way to make it continue from after the meta refresh?