From 43be37ae355bb91234c74806ceba0cc1c121600d Mon Sep 17 00:00:00 2001 From: FandryNoutah <57153456+FandryNoutah@users.noreply.github.com> Date: Mon, 31 May 2021 16:48:34 +0300 Subject: [PATCH 1/2] Need session activation from Parse After logging in with parseUser, it can be fine if you start session automatically and developers don't need to call PHP session_start() function, or define into the documentation the full use of the session, thanks. --- _includes/php/users.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_includes/php/users.md b/_includes/php/users.md index 61b6439cd..b466d8f4f 100644 --- a/_includes/php/users.md +++ b/_includes/php/users.md @@ -91,6 +91,7 @@ It would be bothersome if the user had to log in every time they open your app. By default, whenever you use any signup or login methods, the user will be saved in PHP Session storage (The `$_SESSION` superglobal.) ```php +//Here we need to call session_start() if we want to rerieve the current user $currentUser = ParseUser::getCurrentUser(); if ($currentUser) { // do stuff with the user From 99df076a63d002c7604309286a1e67af105f7271 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Mon, 26 Jul 2021 22:39:33 +0200 Subject: [PATCH 2/2] Update users.md --- _includes/php/users.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_includes/php/users.md b/_includes/php/users.md index b466d8f4f..ac67d63f5 100644 --- a/_includes/php/users.md +++ b/_includes/php/users.md @@ -88,10 +88,9 @@ Note that this will only send if the account for the email requested has not alr It would be bothersome if the user had to log in every time they open your app. You can avoid this by using the cached current `ParseUser` object. -By default, whenever you use any signup or login methods, the user will be saved in PHP Session storage (The `$_SESSION` superglobal.) +By default, whenever you use any signup or login methods, the user will be saved in PHP Session storage, the `$_SESSION` superglobal. When re-initializing the Parse PHP SDK, you may need to instruct PHP to load the stored session data into the `$_SESSION` superglobal using `session_start()` before initializing the Parse PHP SDK to make Parse use persistent storage and continue the previous user session. ```php -//Here we need to call session_start() if we want to rerieve the current user $currentUser = ParseUser::getCurrentUser(); if ($currentUser) { // do stuff with the user