ee
Showing
1 changed file
with
6 additions
and
2 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,10 +159,14 @@ $app->post('/disconnect', function () use ($app, $client) { | ... | @@ -159,10 +159,14 @@ $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(); |
| 164 | session_regenerate_id(true); | 165 | session_write_close(); |
| 166 | setcookie(session_name(),'',0,'/'); | ||
| 167 | session_regenerate_id(true); | ||
| 165 | error_log('destroy'); | 168 | error_log('destroy'); |
| 169 | |||
| 166 | 170 | ||
| 167 | return new Response('Successfully disconnected', 200); | 171 | return new Response('Successfully disconnected', 200); |
| 168 | }); | 172 | }); | ... | ... |
-
Please register or sign in to post a comment