Closed ghost closed 4 years ago
Solved by using:
local session = require "resty.session".start{
name = "name",
storage = "redis",
redis = {
prefix = 'redispref',
},
cookie = {
lifetime = 1800,
renew = 1800,
},
}```
Using redis as storage backend, session was initialized using:
The prefix
customprefix
isn't set and the TTL of a session key inside redis is still set to 1 hour (requested a few seconds, after session was started):Will I need to create the session in another way?