session stat

This commit is contained in:
Liang Ding 2015-02-17 12:06:56 +08:00
parent 8fd9ae1315
commit 05c1d2ffe8
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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++
}
}