ee
Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
| 19 | * See the License for the specific language governing permissions and | 19 | * See the License for the specific language governing permissions and |
| 20 | * limitations under the License. | 20 | * limitations under the License. |
| 21 | */ | 21 | */ |
| 22 | session_start(); | 22 | |
| 23 | /* | 23 | /* |
| 24 | * Note (Gerwin Sturm): | 24 | * Note (Gerwin Sturm): |
| 25 | * Include path is still necessary despite autoloading because of the require_once in the libary | 25 | * 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) { | ... | @@ -159,11 +159,15 @@ $app->post('/disconnect', function () use ($app, $client) { |
| 159 | unset($app); | 159 | unset($app); |
| 160 | unset($client); | 160 | unset($client); |
| 161 | unset($_SESSION); | 161 | unset($_SESSION); |
| 162 | session_start(); | ||
| 162 | session_destroy(); | 163 | session_destroy(); |
| 163 | session_unset(); | 164 | session_unset(); |
| 165 | session_write_close(); | ||
| 166 | setcookie(session_name(),'',0,'/'); | ||
| 164 | session_regenerate_id(true); | 167 | session_regenerate_id(true); |
| 165 | error_log('destroy'); | 168 | error_log('destroy'); |
| 166 | 169 | ||
| 170 | |||
| 167 | return new Response('Successfully disconnected', 200); | 171 | return new Response('Successfully disconnected', 200); |
| 168 | }); | 172 | }); |
| 169 | 173 | ... | ... |
-
Please register or sign in to post a comment