Session expiration management: error handling and remove useless line
This commit is contained in:
parent
440ee7d88e
commit
bcb75be549
1 changed files with 4 additions and 2 deletions
|
|
@ -37,8 +37,10 @@ func GetSessionStore(c *fiber.Ctx) (*session.Session, error) {
|
|||
return session, err
|
||||
}
|
||||
|
||||
session.Set("test", time.Now())
|
||||
session.Save()
|
||||
err = session.Save()
|
||||
if err != nil {
|
||||
return session, err
|
||||
}
|
||||
|
||||
return store.Get(c)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue