diff options
-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. |