Ask coding questions

← Back to all posts
Will this save the username and password to the file globally?
BananaJellyfish (205)

basically, i want to know if this will save a username and a password so, lets say i posted this, if you someone else uses the same username and password, they will be able to login. i ask this because while using spotlight pages, i can change the username and password, but when i reload, it reverts the username and password to 'l'. So please someone tell me if files save things globally.

Answered by Coder100 (17010) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (17010)

no, no it won't. Files are not reliable databases. They can reset if you don't visit the repl every few hours or so.

BananaJellyfish (205)

So i have to use a database? @Coder100

Coder100 (17010)

yep
repl.it db or something hosted not on replit @BananaJellyfish