You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works fine. I could confirm that the value is correctly retrieved from the session and the session is registered as "session_randomstringkey" in my Redis container.
However, if I add Options to the Redis store as:
redisStore, _:=redis.NewStore(10, "tcp", "localhost:6379", "", []byte("secret"))
redisStore.Options(sessions.Options{Path: "/"}) // or set any arbitrary fieldrouter.Use(sessions.Sessions("mysession", redisStore))
// same code as above follows...
It does not. The value of the variable count will be nil and nothing is registered in the Redis container.
Any clue?
The text was updated successfully, but these errors were encountered:
When the code like the below is run:
It works fine. I could confirm that the value is correctly retrieved from the session and the session is registered as "session_randomstringkey" in my Redis container.
However, if I add Options to the Redis store as:
It does not. The value of the variable count will be nil and nothing is registered in the Redis container.
Any clue?
The text was updated successfully, but these errors were encountered: