func (repo *Repository) Logout(w http.ResponseWriter, r *http.Request) {
	_ = repo.App.Session.Destroy(r.Context())
	_ = repo.App.Session.RenewToken(r.Context())
	repo.App.Session.Put(r.Context(), "flash", "Logged out successfully")

	http.Redirect(w, r, "/user/login", http.StatusSeeOther)
}
// Logout logs a user out
Logout logs a user out
// Logout logs a user out
func (repo *Repository) Logout(w http.ResponseWriter, r *http.Request) {
	_ = repo.App.Session.Destroy(r.Context())
	_ = repo.App.Session.RenewToken(r.Context())
	repo.App.Session.Put(r.Context(), "flash", "Logged out successfully")
	http.Redirect(w, r, "/user/login", http.StatusSeeOther)
}
func ( repo * Repository ) Logout ( w http . ResponseWriter , r * http . Request ) { _ = repo . App . Session . Destroy ( r . Context ( ) ) _ = repo . App . Session . RenewToken ( r . Context ( ) ) repo . App . Session . Put ( r . Context ( ) , " " , " " ) http . Redirect ( w , r , " " , http . StatusSeeOther ) }
Logout logs a user out
Logout logs a user out