test
Showing
1 changed file
with
12 additions
and
11 deletions
| 1 | <?php | ||
| 2 | include_once("config.php"); | ||
| 3 | if(array_key_exists('logout',$_GET)) | ||
| 4 | { | ||
| 5 | unset($_SESSION['token']); | ||
| 6 | unset($_SESSION['google_data']); //Google session data unset | ||
| 7 | $gClient->revokeToken(); | ||
| 8 | session_destroy(); | ||
| 9 | header("Location:index.php"); | ||
| 10 | } | ||
| 11 | ?> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | <?php | ||
| 2 | include_once("config.php"); | ||
| 3 | if(array_key_exists('logout',$_GET)) | ||
| 4 | { | ||
| 5 | unset($_SESSION['token']); | ||
| 6 | unset($_SESSION['google_data']); //Google session data unset | ||
| 7 | $gClient->revokeToken(); | ||
| 8 | session_destroy(); | ||
| 9 | header("Location:index.php"); | ||
| 10 | } | ||
| 11 | ?> | ||
| 12 | ... | ... |
-
Please register or sign in to post a comment