在我的退出页面中,我必须完成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帐户退出无效。
有关它的任何建议吗?