在php中单击即可注销多个站点

时间:2012-04-24 08:54:59

标签: php redirect header

在我的退出页面中,我必须完成3个任务

1. destroy session
2. logout from google account
3. redirect to google home page

我在注销页面写了以下代码:

<?php
    session_start();

    session_destroy();
    header('location: https://www.google.com/accounts/Logout');
    header('location: http://www.google.com');
?>

步骤1和3工作正常,但从Google帐户退出无效。

有关它的任何建议吗?

0 个答案:

没有答案