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
ac3a4474
Commit
ac3a4474
authored
Dec 27, 2015
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the session update issues
parent
37dff6be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
session.go
session/session.go
+3
-3
No files found.
session/session.go
View file @
ac3a4474
...
...
@@ -156,9 +156,9 @@ func (manager *Manager) getSid(r *http.Request) (string, error) {
return
url
.
QueryUnescape
(
cookie
.
Value
)
}
// S
tart session.
generate or read the session id from http request.
// S
essionStart
generate or read the session id from http request.
// if session id exists, return SessionStore with this id.
func
(
manager
*
Manager
)
SessionStart
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
(
session
S
essionS
tore
,
err
error
)
{
func
(
manager
*
Manager
)
SessionStart
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
(
session
Store
,
err
error
)
{
sid
,
errs
:=
manager
.
getSid
(
r
)
if
errs
!=
nil
{
return
nil
,
errs
...
...
@@ -169,7 +169,7 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se
}
// Generate a new session
sid
,
errs
=
manager
.
sessionI
d
(
r
)
sid
,
errs
=
manager
.
sessionI
D
(
r
)
if
errs
!=
nil
{
return
nil
,
errs
}
...
...
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