mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 21:45:57 +00:00
Set the session's configuration to a pointer
This commit is contained in:
@@ -252,13 +252,13 @@ type (
|
||||
// sessionsManager implements the ISessionsManager interface
|
||||
// contains the cookie's name, the provider and a duration for GC and cookie life expire
|
||||
sessionsManager struct {
|
||||
config config.Sessions
|
||||
config *config.Sessions
|
||||
provider *sessionProvider
|
||||
}
|
||||
)
|
||||
|
||||
// newSessionsManager creates & returns a new SessionsManager and start its GC
|
||||
func newSessionsManager(c config.Sessions) *sessionsManager {
|
||||
func newSessionsManager(c *config.Sessions) *sessionsManager {
|
||||
if c.DecodeCookie {
|
||||
c.Cookie = base64.URLEncoding.EncodeToString([]byte(c.Cookie)) // change the cookie's name/key to a more safe(?)
|
||||
// get the real value for your tests by:
|
||||
|
||||
Reference in New Issue
Block a user