After I log in the user on the backend (I use Parse.com CloudCode) I would like to save the uri to his avatar in his session. How would I do it in Parse.com. I know there is an object Parse.Session.current() but not sure how to use it.
Treat it just like other objects provided by parse.
Parse.Session.current().then(function(session) {
session.set("foo", "bar");
session.save().then(function() {
console.log(session.get("foo"));
});
});
The session CLP should be set to allow this. (And the app must be setup to require revokable sessions).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.