I don’t know if anybody has gone already live with a nodejs project but this is going to be needed if people don’t want to logout all their users every time they upload a change to the server.
There are some changes needed to some core files(that could be rewritten in the future) so I am hoping they can add it soon to the core. (@george)
Additionally, as FS store won’t work on hosting providers with non-persistant storage(like Heroku) it is important also to offer an alternative. I will probably conduct some testing later on for the knex db driven session store. Both options seem to be quite straightforward.
This is indeed something that would be needed, but I’m not sure on how we would implement this within Wappler. I don’t want to include all possible stores directly, they should be optional and that is currently not possible. Also each store needs different code, we need to somehow make this dynamic, so that you can easily set it with some config options and do not need to code it yourself.
It is already possible to change the config for the sessions using the config.json, but the store needs an instance as value and this can not be set using json.
+1 For a way to set this up or at least a guide (@JonL that test you’ve done for filesystem store, is that something that can be used with a DigitalOcean droplet?)
Btw to just handle the being logged out issue, just use a remember me options with the login so a cookie is used and next time the user is auto logged in.
Hello @JonL, making sessions persistent after a server restart sounds great!. Could you share a bit more on how you accomplished this to give it a try?
Hi George, pls correct me if im wrong, but I read that Redis can only be used with Docker, unfortunately I do not use docker in production since my hosting gives me Cpanel with the Nodejs implementation. I hope you can integrate it for those of us who work without docker.
What kind of session store would you prefer, what is possible with your host? Options could be using the file system or an existing database. We could perhaps also support an external redis server.