sessions
sessions copied to clipboard
Gin middleware for session management
This PR adds SQLite3 session store, based on thread-safe, high performant SQLite storage, using SQLite database with connections pool, shared memory and write-ahead journal, making possible to use SQLite in...
See: https://github.com/gorilla/sessions/issues/48#issuecomment-120683664 Now I got `[sessions] ERROR! securecookie: expired timestamp` after 30 days even if I set store options for a f.e. century ```go store := cookie.NewStore([]byte(secret)) store.Options(gs.Options{ Path: "/",...
I have a feature where users need to be onboarded in order to access the App. If they have not been onboarded, we do not create a session for them...
Hi. I propose to fix tester package session options setup. Current procedure overwrites session options defined in variable passed to the testcase, thus resetting session.options to empty or zero values,...
Within the code, there was, to me a mistake, in which the Sessions were not defined within the interface. In this PR, we have added that and we expect to...
The version of redigo used is not accurate, can it be updated to the actual latest. Please see https://github.com/gomodule/redigo/issues/556#issuecomment-826879176 https://github.com/gin-contrib/sessions/blob/de01a566c671c32ff889ab6b984240abd8e2df26/go.mod#L11
how remove the session key from redis? I call session.Clear() after call session.Save(),but the session key still existed in redis.
When I set a session in r.POST methods, but cann't get session in r.GET methods。
very strange ```` session := sessions.Default(c) var count int v := session.Get("count") if v == nil { count = 0 } else { count = v.(int) count++ } session.Set("count", count)...
My session config is as follows: ``` package middlewares import ( "github.com/boj/redistore" "github.com/gin-contrib/sessions" "github.com/gin-contrib/sessions/redis" "github.com/gin-gonic/gin" ) var store redis.Store func init() { // store, _ = redis.NewStore(10, "tcp", "127.0.0.1:8631", "&uaRXq*tgZYRsg{Rt6&",...