summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHank Shen <swhbox@foxmail.com>2020-11-22 12:40:53 +0300
committerHank Shen <swhbox@foxmail.com>2020-11-22 12:40:53 +0300
commitd1d15b8bee221bb4a393bf2ca565777036b61121 (patch)
tree2895dd88663a2ef4a64317d0f75c5aef09df3e97
parent0b7b4a84d61a773534923232917bbf62cc6597da (diff)
update
-rw-r--r--sessions.go5
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.