diff --git a/router.go b/router.go index 9479965..c93ca9b 100644 --- a/router.go +++ b/router.go @@ -60,6 +60,7 @@ func (router *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { if user != nil { user.Session = sess + http.SetCookie(w, &http.Cookie{Name: auth.SessionCookieName, Value: sess.ID, Expires: sess.Time.Add(auth.SessionMaxTime), Path: "/", HttpOnly: true}) } } }