// IssueCookie creates a new cookie
IssueCookie creates a new cookie
// IssueCookie creates a new cookie
func (u *User) IssueCookie() *http.Cookie {
	token := uuid.Must(uuid.NewV4(), nil).String()
	u.LiveToken = token
	return &http.Cookie{
		Name:    "session_token",
		Value:   token,
		Expires: time.Now().Add(120 * time.Second),
	}
}
func ( u * User ) IssueCookie ( ) * http . Cookie { token := uuid . Must ( uuid . NewV4 ( ) , nil ) . String ( ) u . LiveToken = token return & http . Cookie { Name : " " , Value : token , Expires : time . Now ( ) . Add ( 120 * time . Second ) , } }
IssueCookie creates a new cookie
IssueCookie creates a new cookie