diff options
author | Hank Shen <swhbox@foxmail.com> | 2020-11-22 12:40:53 +0300 |
---|---|---|
committer | Hank Shen <swhbox@foxmail.com> | 2020-11-22 12:40:53 +0300 |
commit | d1d15b8bee221bb4a393bf2ca565777036b61121 (patch) | |
tree | 2895dd88663a2ef4a64317d0f75c5aef09df3e97 /sessions.go | |
parent | 0b7b4a84d61a773534923232917bbf62cc6597da (diff) |
update
Diffstat (limited to 'sessions.go')
-rw-r--r-- | sessions.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sessions.go b/sessions.go index 2f20258..db4a57b 100644 --- a/sessions.go +++ b/sessions.go @@ -73,6 +73,11 @@ func (s *Session) AddFlash(value interface{}, vars ...string) { s.Values[key] = append(flashes, value) } +// Reload reload session data +func (s *Session) Reload(ctx echo.Context) error { + return s.store.Reload(ctx, s) +} + // Save is a convenience method to save this session. It is the same as calling // store.Save(request, response, session). You should call Save before writing to // the response or returning from the handler. |