Open GoogleCodeExporter opened 9 years ago
Also may be good to add ability to delete session from store (filestore/mongodb
and others).
Original comment by v...@selfip.ru
on 18 Jun 2012 at 2:07
[deleted comment]
It could be session.Clear()
Original comment by fio...@gmail.com
on 6 Apr 2013 at 7:54
By the way, one might also set the Path to delete the cookie:
session.Options = &sessions.Options{MaxAge: -1, Path: "/"}
Or use net/http directly:
http.SetCookie(w, &http.Cookie{Name: "sess", MaxAge: -1, Path: "/"})
Original comment by fio...@gmail.com
on 8 Apr 2013 at 8:59
I would vote for Destroy() since "Destroy" is on par with session lingo
Original comment by styler1...@gmail.com
on 23 Jul 2014 at 4:40
I agree, it should be easier to destroy a session.
Original comment by tsrwe...@gmail.com
on 26 Jul 2014 at 11:53
Original issue reported on code.google.com by
rodrigo.moraes
on 3 May 2012 at 12:14