From d1d15b8bee221bb4a393bf2ca565777036b61121 Mon Sep 17 00:00:00 2001 From: Hank Shen Date: Sun, 22 Nov 2020 17:40:53 +0800 Subject: update --- sessions.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sessions.go') 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. -- cgit v1.2.3