We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f726c34 commit cf53003Copy full SHA for cf53003
ebook/06.2.md
@@ -53,7 +53,7 @@ Go实现整个的流程应该也是这样的,在main包中创建一个全局
53
var globalSessions *session.Manager
54
//然后在init函数中初始化
55
func init() {
56
- globalSessions = NewManager("memory","gosessionid",3600)
+ globalSessions, _ = NewManager("memory","gosessionid",3600)
57
}
58
59
我们知道session是保存在服务器端的数据,它可以以任何的方式存储,比如存储在内存、数据库或者文件中。因此我们抽象出一个Provider接口,用以表征session管理器底层存储结构。
0 commit comments