Skip to content

Commit 2b19d80

Browse files
committed
Fixed a bug where the SDK wouldn't properly clear the data related to the session.
1 parent 7cb8750 commit 2b19d80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/base_facebook.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1123,8 +1123,9 @@ protected static function base64UrlDecode($input) {
11231123
* Destroy the current session
11241124
*/
11251125
public function destroySession() {
1126-
$this->setAccessToken(null);
1127-
$this->user = 0;
1126+
$this->accessToken = null;
1127+
$this->signedRequest = null;
1128+
$this->user = null;
11281129
$this->clearAllPersistentData();
11291130
}
11301131

0 commit comments

Comments
 (0)