Persist session even after server crash and up again in Nodejs

Asked

Viewed 56 times

0

How do I persist the user login session even when the application "crasha" and comes back again. Currently when the server gives some unexpected error I go there fix the error and saved, then the server restarts and the user’s session dies or even when the application crashes and restarts alone.

I want something similar to Laravel’s Artisan...that when saved something in php it restarts the server but does not delete sessions.

  • If you restart the server, you will lose volatile memory. To persist the session after the server restarts, you need to save the session to a non-volatile memory. Memcached, Redis and even Mongodb are widely used for cashing.

  • Thanks I’m researching here but it helped a lot thanks! XD

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.