package
0.0.0-20200628105730-7179885c4902
Repository: https://github.com/exlinc/golang-utils.git
Documentation: pkg.go.dev
# README
Utils for HTTP cookies
This package offers several functions for streamlining HTTP cookie-related tasks
# Functions
DeleteCookie removes a cookie from the clients browser, useful for things like getting rid of a client's session cookie.
SetHTTPOnlyCookie sets a cookie that is only visible to the browser, as opposed to the client JS itself.
SetJavascriptAccessibleCookie should NOT UNDER ANY CIRCUMSTANCES be used for sensitive credentials! It sets an HTTP cookie that *is* accessible through the client Javascript.