node.js - express使用了conncet-redis存到redis中后,浏览器关闭后redis中的session并不会自动清除
怪我咯
怪我咯 2017-04-17 15:44:53
0
2
363
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
刘奇

Redis can set the expiration time.

The following additional params may be included:

ttl Redis session TTL (expiration) in seconds. Defaults to
session.maxAge (if set), or one day.

刘奇

It will be automatically deleted after a certain time limit...
The server will not respond to the browser closing event

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template