Skip to content

Commit

Permalink
Session check verbiage reduction
Browse files Browse the repository at this point in the history
PR: #266
  • Loading branch information
knoxcard authored and wavded committed May 2, 2019
1 parent 2f4b9d2 commit e8744e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Expand Up @@ -67,7 +67,7 @@ FAQ

#### How do I handle lost connections to Redis?

By default, the `node_redis` client will [auto-reconnect](https://github.com/mranney/node_redis#overloading) when a connection is lost. But requests may come in during that time. In express, one way this scenario can be handled is including a "session check" after setting up a session (checking for the existence of `req.session`\):
By default, the `node_redis` client will [auto-reconnect](https://github.com/mranney/node_redis#overloading) when a connection is lost. But requests may come in during that time. In Express, this scenario can be handled by including a "session check".

```js
app.use(session( /* setup session here */ ))
Expand Down

0 comments on commit e8744e4

Please sign in to comment.