2
Server side storage
TheDrone7 (504)

I am making a http server using express in nodejs and I wanted to know if there was something similar to session storage but for the server side. Like this is a variable but I want it to be same for all users even when it changes. This might've been possible if it were possible to update files on repl.it programmatically but I don't think it works yet. If you know of something that can solve this problem, please help. Thank you!

(I promise 6 cycles to whoever helps me solve this :-P)

You are viewing a single comment. View All
Answered by megatron0000 (9) [earned 5 cycles]
View Answer
1
ash15khng (214)

I don't really think it's possible unless you store it on your server?

1
TheDrone7 (504)

@ash15khng ummm, that's exactly what I'm asking, how would I store it on my server? I don't want to get an entire online hosted DB for just 2 variables. And files don't save once the server goes down.

1
ash15khng (214)

@TheDrone7 Oh, then I can't think of any way to do it. (I can't read I thought you were using an online DB)

1
ash15khng (214)

@TheDrone7 Sorry.... (I'm a big noob someone else may be able to answer)