s
Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -153,7 +153,11 @@ $app->post('/disconnect', function () use ($app, $client) { | ... | @@ -153,7 +153,11 @@ $app->post('/disconnect', function () use ($app, $client) { |
| 153 | $client->revokeToken($token); | 153 | $client->revokeToken($token); |
| 154 | // Remove the credentials from the user's session. | 154 | // Remove the credentials from the user's session. |
| 155 | $app['session']->set('token', ''); | 155 | $app['session']->set('token', ''); |
| 156 | $app = ""; | ||
| 157 | $_SESSION = []; | ||
| 156 | session_destroy(); | 158 | session_destroy(); |
| 159 | session_unset(); | ||
| 160 | |||
| 157 | return new Response('Successfully disconnected', 200); | 161 | return new Response('Successfully disconnected', 200); |
| 158 | }); | 162 | }); |
| 159 | 163 | ... | ... |
-
Please register or sign in to post a comment