cookie

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCookieAndRedirect

func ClearCookieAndRedirect(w http.ResponseWriter, r *http.Request, redirect string, cookieDomain string)

ClearCookieAndRedirect drop existing cookie for auth

func GetCookieValue

func GetCookieValue(r *http.Request, name string) string

GetCookieValue retrieve cookie value

func SetCookieAndRedirect

func SetCookieAndRedirect(w http.ResponseWriter, r *http.Request, redirect string, cookieDomain string, cookieContent string)

SetCookieAndRedirect defined auth cookie and redirect

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL