Issues (63)

logout.php (1 issue)

Severity
1
<?php
2
/** 
3
 * Copyright 2018 Social Manager.
4
 * 
5
 * PHP version 7.2.8
6
 *
7
 * @category Album_Manager
8
 * @package  Facebook
9
 * @author   Kishan Jasani <[email protected]>
10
 * @license  https://rtfbchallenge.000webhostapp.com/privacy_policy/privacy_policy.php 
11
 * @link     ""
12
 * You are hereby granted a non-exclusive, worldwide, royalty-free license to
13
 * use, copy, modify, and distribute this software in source code or binary
14
 * form for use in connection with the web services and APIs provided by
15
 * Kishan Jasani.
16
 *
17
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
18
 */
19
session_start();
20
unset($_SESSION['accessToken']);
21
unset($_SESSION['userid']);
22
unset($_SESSION['email']);
23
header('Location: https://localhost:8443/SociaManager/login.php');
24
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...