]> git.cworth.org Git - empires-server/commit
Add simple session tracking
authorCarl Worth <cworth@cworth.org>
Wed, 20 May 2020 23:56:43 +0000 (16:56 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 20 May 2020 23:56:43 +0000 (16:56 -0700)
commitcb2a7a1bb519b307a671dbe9310dbf95665ff63d
treec0c256d0791ecb95ef6cbf73e1b309055a434a7c
parent272d7d1d0b7566e91d506e7b93d1b87d8687bd5d
Add simple session tracking

By taking advantage of the express-session module.

Note that we're not actually using the session for anything yet, so we
haven't configured anything such as the expiration time or even which
backend should be used for storing the session data (meaning the
session data will just be stored in memory for now).

We do add the very beginnings of a configuration file here, which for
now simply has a "secret_session" key with the random data for the
session manager to use.

Also, we configure both the "resave" and the "saveUninitialized"
properties on the session object to avoid the warnings about the
deprecated values for these two properties.
.gitignore
lmno.js