// Copyright 2017 gf Author(https://github.com/gogf/gf). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. package ghttp import ( "time" ) func (s *Server) SetCookieMaxAge(ttl time.Duration) { s.config.CookieMaxAge = ttl } func (s *Server) SetCookiePath(path string) { s.config.CookiePath = path } func (s *Server) SetCookieDomain(domain string) { s.config.CookieDomain = domain } func (s *Server) GetCookieMaxAge() time.Duration { return s.config.CookieMaxAge } func (s *Server) GetCookiePath() string { return s.config.CookiePath } func (s *Server) GetCookieDomain() string { return s.config.CookieDomain }