Merge pull request #652 from Jimmy99/patch-43

Update 14.2.md
This commit is contained in:
astaxie
2016-04-07 09:51:47 +08:00

View File

@@ -1,6 +1,6 @@
# 14.2 Sessions
In chapter 6, we introduced some basic concepts pertaining to sessions in Go, and we implemented a sessions manager. The Beego framework uses this session manager to implement some convenient session handling functionality.
In chapter 6, we introduced some basic concepts pertaining to sessions in Go, and we implemented a session manager. The Beego framework uses this session manager to implement some convenient session-handling functionality.
## Integrating sessions
@@ -14,7 +14,7 @@ Beego handles sessions mainly according to the following global variables:
GlobalSessions *session.Manager// global session controller
Of course, the above values of these variables need to be initialized. You can also use the values from the following configuration file code to set these values:
Of course, the values of these variables shown above need to be initialized. You can also use the values from the following configuration file code to set these values:
if ar, err := AppConfig.Bool("sessionon"); err != nil {
SessionOn = false