2

The "Expire Inactive Session" feature is available in parse.com as per (http://blog.parse.com/announcements/announcing-new-enhanced-sessions/)

Apparently, it didn't make it into the open source parse server as per (https://github.com/ParsePlatform/parse-server/wiki/Compatibility-with-Hosted-Parse#session-features)

Does anyone have recommendations how to implement it in parse server? or any other way to get this feature implemented in cloud code?

2 Answers 2

1

I came across your question just now with the same concern. Did you decide on a solution for that?

My current plan is to run an external daily nodejs script directly on top of mongodb with the logic of, well - searching for expired sessionTokens and removing them. The connection string would include readPreference=secondary to save cpu on the primary mongodb.

0

When creating a new instance of ParseServer pass: expireInactiveSessions: true alongside the options.

You can configure the sessionLength too (in seconds)

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.