|
Posted by rich on 05/17/06 23:06
I want to logoff my application and I have set up a link to do this. I
got it to destroy my session, but I can't get the page to go to the top
of the browser and do a page refresh. Here is the code I am using.
First there is the link I am using.
printf("<a href=\"%s?logoff=%s\">%s</a><br>\n",
$_SERVER['PHP_SELF'],"logoff", "LOGOFF");
Here is piece I use right at the top of the script to destroy the
session and try to refresh the page.
if (isset($_REQUEST['logoff'])){
session_destroy();
$_SERVER['PHP_SELF'];
}
What do I have to do to get the refresh to work?
[Back to original message]
|