Subversion Repository Public Repository

Nextrek

Diff Revisions 625 vs 626 for /Android/SmartCharging/endPoints/logout.php

Diff revisions: vs.
  @@ -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');