Merge pull request #19 from fossyy/staging
Set proper creation timestamp for user sessions
This commit is contained in:
@ -85,6 +85,7 @@ func Create() *Session {
|
|||||||
id := utils.GenerateRandomString(128)
|
id := utils.GenerateRandomString(128)
|
||||||
session := &Session{
|
session := &Session{
|
||||||
ID: id,
|
ID: id,
|
||||||
|
CreateTime: time.Now(),
|
||||||
Values: make(map[string]interface{}),
|
Values: make(map[string]interface{}),
|
||||||
}
|
}
|
||||||
GlobalSessionStore[id] = session
|
GlobalSessionStore[id] = session
|
||||||
|
Reference in New Issue
Block a user