session stat
This commit is contained in:
parent
8fd9ae1315
commit
05c1d2ffe8
|
@ -63,7 +63,6 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) {
|
|||
data["output"] = template.HTML(string(out))
|
||||
|
||||
if nil != err {
|
||||
logger.Error(err)
|
||||
data["succ"] = false
|
||||
|
||||
return
|
||||
|
|
|
@ -381,7 +381,7 @@ func (sessions *wSessions) Remove(sid string) {
|
|||
|
||||
cnt := 0 // count wide sessions associated with HTTP session
|
||||
for _, ses := range *sessions {
|
||||
if ses.HTTPSession.Values["id"] == s.HTTPSession.Values["id"] {
|
||||
if ses.Username == s.Username {
|
||||
cnt++
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue