I have implemented session mechanism in my app on GAE node.js standard environment using express-session without store
value. Though it works without problems on localhost, session seems to be terminated regardless of how cookie.maxAge
is configured on GAE node.js standard environment. This is what I have:
app.use(session({
cookie: {
maxAge: 31536000000, // 1 year
secure: true
},
secret: SECRET,
resave: true,
saveUninitialized: true
}));
I assume this is caused by GAE not persisting memory and if so, I should add store
option. I looked for an easiest option and found memcache, but it's not yet available on GAE node.js standard.
- Is this a problem of the app not having
store
option? - What is the easiest way to have a
store
on GAE node.js standard? - How can I use memcache on this environment?