8cafabce by Jeff Balicki

ee

1 parent 76692a87
......@@ -19,7 +19,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
session_start();
/*
* Note (Gerwin Sturm):
* Include path is still necessary despite autoloading because of the require_once in the libary
......@@ -159,11 +159,15 @@ $app->post('/disconnect', function () use ($app, $client) {
unset($app);
unset($client);
unset($_SESSION);
session_start();
session_destroy();
session_unset();
session_write_close();
setcookie(session_name(),'',0,'/');
session_regenerate_id(true);
error_log('destroy');
return new Response('Successfully disconnected', 200);
});
......