]> git.cworth.org Git - lmno-server/commitdiff
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)
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.


No differences found