Skip to content

Commit

Permalink
Need session activation from Parse (parse-community#830)
Browse files Browse the repository at this point in the history
* 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.

* Update users.md

Co-authored-by: Manuel <5673677+mtrezza@users.noreply.github.com>
  • Loading branch information
FandryNoutah and mtrezza committed Jul 26, 2021
1 parent 710d728 commit b2b654c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/php/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ 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
$currentUser = ParseUser::getCurrentUser();
Expand Down

0 comments on commit b2b654c

Please sign in to comment.