How to use sessions in a webtask?

时间:2018-09-18 19:56:30

标签: webtask

There's no persistent memory in webtasks, so passport's default MemoryStore won't work. I do know webtask offers persistant storage so perhaps I could use that somehow?

1 个答案:

答案 0 :(得分:0)

Although it would be possible to use context.storage by hacking with a compiler (e.g. a fork of webtask-tools) it's probably not worth it as storage size limit is 500kb.

I would just get a free 500mb mongodb database from mlab and use connect-mongo.