Header('Location: .'); not working

Hello,
I have a site that works fine on the development site, but when header(‘Location: .’); is called on the production site, all session variable seem to be lost and it sends the user back to the login page. Sample code is, after doing an insert (which works fine), the index.php calls:
header(‘Location: .’);
exit();
It “logs out” from that. Other processes in the index.php call an include statement and those work fine. It’s all the header statements the log the user out.

Any suggestions?

Raw HTTP Location headers MUST be an absolute URL (including the “http://” part) for proper functionality and be RFC Standards-compliant. Apache will take relative URLs and attempt to rewrite the header to be an absolute URL. Some browsers can handle relative redirects but that behavior is undefined. I have no idea what behavior the application will have with a ‘.’ redirect.