search

Home  >  Q&A  >  body text

node.js - express使用了conncet-redis存到redis中后,浏览器关闭后redis中的session并不会自动清除

怪我咯怪我咯2786 days ago344

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 15:46:53

    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.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 15:46:53

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

    reply
    0
  • Cancelreply