Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
65d8b4f5
Unverified
Commit
65d8b4f5
authored
Feb 22, 2018
by
astaxie
Committed by
GitHub
Feb 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3064 from takeo-lvgs/dev
fix the issue #3063
parents
6d18d4dc
9a7554fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
config.go
config.go
+6
-6
No files found.
config.go
View file @
65d8b4f5
...
...
@@ -98,9 +98,9 @@ type SessionConfig struct {
SessionAutoSetCookie
bool
SessionDomain
string
SessionDisableHTTPOnly
bool
// used to allow for cross domain cookies/javascript cookies.
SessionEnableSidInHTTPHeader
bool
//
enable store/get the sessionId into/from http headers
SessionEnableSidInHTTPHeader
bool
//
enable store/get the sessionId into/from http headers
SessionNameInHTTPHeader
string
SessionEnableSidInURLQuery
bool
//
enable get the sessionId from Url Query params
SessionEnableSidInURLQuery
bool
//
enable get the sessionId from Url Query params
}
// LogConfig holds Log related config
...
...
@@ -138,8 +138,8 @@ func init() {
panic
(
err
)
}
var
filename
=
"app.conf"
if
os
.
Getenv
(
"BEEGO_MODE"
)
!=
""
{
filename
=
os
.
Getenv
(
"BEEGO_MODE"
)
+
".app.conf"
if
os
.
Getenv
(
"BEEGO_
RUN
MODE"
)
!=
""
{
filename
=
os
.
Getenv
(
"BEEGO_
RUN
MODE"
)
+
".app.conf"
}
appConfigPath
=
filepath
.
Join
(
workPath
,
"conf"
,
filename
)
if
!
utils
.
FileExists
(
appConfigPath
)
{
...
...
@@ -240,9 +240,9 @@ func newBConfig() *Config {
SessionCookieLifeTime
:
0
,
//set cookie default is the browser life
SessionAutoSetCookie
:
true
,
SessionDomain
:
""
,
SessionEnableSidInHTTPHeader
:
false
,
//
enable store/get the sessionId into/from http headers
SessionEnableSidInHTTPHeader
:
false
,
//
enable store/get the sessionId into/from http headers
SessionNameInHTTPHeader
:
"Beegosessionid"
,
SessionEnableSidInURLQuery
:
false
,
//
enable get the sessionId from Url Query params
SessionEnableSidInURLQuery
:
false
,
//
enable get the sessionId from Url Query params
},
},
Log
:
LogConfig
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment