Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
afadb3f6
authored
2014-01-10 13:31:08 +0800
by
sol lu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update beego.go
1 parent
844412c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
beego.go
beego.go
View file @
afadb3f
...
...
@@ -192,6 +192,7 @@ func Run() {
}
if
SessionOn
{
var
err
error
sessionConfig
:=
AppConfig
.
String
(
"sessionConfig"
)
if
sessionConfig
==
""
{
sessionConfig
=
`{"cookieName":"`
+
SessionName
+
`",`
+
...
...
@@ -203,7 +204,7 @@ func Run() {
`"enableSetCookie":`
+
strconv
.
FormatBool
(
SessionAutoSetCookie
)
+
`,`
+
`"cookieLifeTime":`
+
strconv
.
Itoa
(
SessionCookieLifeTime
)
+
`}`
}
GlobalSessions
,
err
:
=
session
.
NewManager
(
SessionProvider
,
GlobalSessions
,
err
=
session
.
NewManager
(
SessionProvider
,
sessionConfig
)
if
err
!=
nil
{
panic
(
err
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment