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))
|
data["output"] = template.HTML(string(out))
|
||||||
|
|
||||||
if nil != err {
|
if nil != err {
|
||||||
logger.Error(err)
|
|
||||||
data["succ"] = false
|
data["succ"] = false
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
|
@ -381,7 +381,7 @@ func (sessions *wSessions) Remove(sid string) {
|
||||||
|
|
||||||
cnt := 0 // count wide sessions associated with HTTP session
|
cnt := 0 // count wide sessions associated with HTTP session
|
||||||
for _, ses := range *sessions {
|
for _, ses := range *sessions {
|
||||||
if ses.HTTPSession.Values["id"] == s.HTTPSession.Values["id"] {
|
if ses.Username == s.Username {
|
||||||
cnt++
|
cnt++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue