func (VS *Server) logout(c *gin.Context) {
	// Clear the cookie
	c.SetCookie("valuevillages", "", -1, "", "", false, true)
	c.Set("isLoggedIn", false)
	// Redirect to the home page
	fmt.Println("Redirecting to /log-in from logout")
	c.Redirect(http.StatusFound, "/about")
}
// Logs out of the app for the user
Logs out of the app for the user
// Logs out of the app for the user
func (VS *Server) logout(c *gin.Context) {
	c.SetCookie("valuevillages", "", -1, "", "", false, true)
	c.Set("isLoggedIn", false)
	fmt.Println("Redirecting to /log-in from logout")
	c.Redirect(http.StatusFound, "/about")
}
func ( VS * Server ) logout ( c * gin . Context ) { c . SetCookie ( " " , " " , - 1 , " " , " " , false , true ) c . Set ( " " , false ) fmt . Println ( " " ) c . Redirect ( http . StatusFound , " " ) }
Logs out of the app for the user
Logs out of the app for the user
// Clear the cookie // Redirect to the home page