1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00

add more PostValueXXX methods as requested at: https://github.com/kataras/iris/discussions/1922

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-07-22 17:11:17 +03:00
parent 420c2e40f8
commit cfb009bb4f
4 changed files with 540 additions and 50 deletions

View File

@@ -187,3 +187,23 @@ func (p *provider) deleteSession(sess *Session) {
p.db.Release(sid)
p.fireDestroy(sid)
}
/*
func (p *provider) regenerateID(ctx *context.Context, oldsid string) {
p.mu.RLock()
sess, ok := p.sessions[oldsid]
p.mu.RUnlock()
if ok {
newsid := sess.Man.config.SessionIDGenerator(ctx)
sess.mu.Lock()
sess.sid = newsid
sess.mu.Unlock()
p.mu.Lock()
p.sessions[newsid] = sess
delete(p.sessions, oldsid)
p.mu.Unlock()
}
}
*/