I know that is a redirect, but I am using it to refresh the page so that the cookie is read by the script. Cookies are not read unless the page is refreshed, I believe. $php_self is a hardcoded variable that is the filename of the script. I assumed that the code would refresh the page, but instead it redirects to the directory index.