From e30f23d4bc079866bb74d3f644128ad875c20174 Mon Sep 17 00:00:00 2001 From: Levin Du Date: Mon, 5 Dec 2016 18:22:20 +0800 Subject: [PATCH] Update README.md add save warining --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 261600f7..f8ebb47a 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ not designed for a production environment. It will leak memory under most conditions, does not scale past a single process, and is meant for debugging and developing. +**Warning** All session must be set **before** call `res.send()` or `res.end`. Because the middleware hook response.end() to save session data. + For a list of stores, see [compatible session stores](#compatible-session-stores). #### Options