

Nextrek
Diff Revisions 537 vs 626 for /Android/SmartCharging/endPoints/nightly/logout.php
@@ -1,5 +1,7 @@ | |||
1 | 1 | <?php | |
2 | - | session_destroy(); | |
2 | + | if (session_id() != '' || isset($_SESSION)) { | |
3 | + | session_destroy(); | |
4 | + | } | |
3 | 5 | ||
4 | 6 | header("Access-Control-Allow-Origin: *"); | |
5 | 7 | header('Content-Type: application/json; charset=UTF-8'); |