Browse Source

FIX: REST remove session and session file, useless in rest mode

Giancarlo Voci 7 years ago
parent
commit
3b5026ff9f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Modules/restful/restful.php

+ 6 - 0
src/Modules/restful/restful.php

@@ -46,6 +46,12 @@ class restful extends PluginStrategy
 		$this->findBoxCore = new FindBoxCoreSystem(...array_values($f3->get('CORE.fb')));
 	}
 
+	public function __destruct()
+	{
+		global $f3;
+		$f3->clear('SESSION');
+	}
+
 	public function RESTful_gentpl($f3)
 	{
 		$font = '"C:\\\\Users\\\\Giancarlo\\\\AppData\\\\Local\\\\Microsoft\\\\Windows\\\\Fonts\\\\Lato-Black.ttf"';