From 7fa09596b059ce017ac92c8c68ce137802106f98 Mon Sep 17 00:00:00 2001 From: jflyfox Date: Wed, 9 Dec 2020 16:22:03 +0800 Subject: [PATCH] improve package gsession --- os/gsession/gsession_manager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/gsession/gsession_manager.go b/os/gsession/gsession_manager.go index 06b6e7611..79b096585 100644 --- a/os/gsession/gsession_manager.go +++ b/os/gsession/gsession_manager.go @@ -1,4 +1,4 @@ -// Copyright 2019 gf Author(https://github.com/gogf/gf). All Rights Reserved. +// Copyright GoFrame Author(https://github.com/gogf/gf). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, @@ -64,6 +64,6 @@ func (m *Manager) TTL() time.Duration { } // UpdateSessionTTL updates the ttl for given session. -func (m *Manager) UpdateSessionTTL(id string, data *gmap.StrAnyMap) { - m.sessionData.Set(id, data, m.ttl) +func (m *Manager) UpdateSessionTTL(sessionId string, data *gmap.StrAnyMap) { + m.sessionData.Set(sessionId, data, m.ttl) }