diff --git a/cache/cache_test.go b/cache/cache_test.go index bc484e0f..52612cfd 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -40,7 +40,7 @@ func TestCache(t *testing.T) { } if err = bm.Decr("astaxie"); err != nil { - t.Error("Incr Error", err) + t.Error("Decr Error", err) } if v := bm.Get("astaxie"); v.(int) != 1 { @@ -77,7 +77,7 @@ func TestFileCache(t *testing.T) { } if err = bm.Decr("astaxie"); err != nil { - t.Error("Incr Error", err) + t.Error("Decr Error", err) } if v := bm.Get("astaxie"); v.(int) != 1 { diff --git a/session/sess_cookie.go b/session/sess_cookie.go index 54acba31..0fe7b093 100644 --- a/session/sess_cookie.go +++ b/session/sess_cookie.go @@ -73,7 +73,8 @@ func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) { Value: url.QueryEscape(str), Path: "/", HttpOnly: true, - Secure: cookiepder.config.Secure} + Secure: cookiepder.config.Secure, + MaxAge: cookiepder.config.Maxage} http.SetCookie(w, cookie) return }