Update 14.2.md
typographical errors and improved readability
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user