No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps Move travis file May 27, 2018
handlers Change to max age May 29, 2018
.gitignore Implementation May 27, 2018
.travis.yml Move travis file May 27, 2018
README.md
app.json
main.go Change to max age May 29, 2018

README.md

go-session

Small sample Go application that demonstrates how to set and delete HTTP Cookies as part of an http.Handler. Also how to test http.Handler types in general.

This application is ready to deploy to Heroku if you want to test it. It will just need some environment variables set up:

  • COOKIE_NAME: the name of the cookie you want to set
  • COOKIE_VALUE: the value of the cookie
  • COOKIE_DOMAIN: the domain of the cookie
  • COOKIE_PATH: the path of the cookie
  • COOKIE_DURATION: how many hours you want the cookie to be valid for

To set the cookie, visit the /login URL, and to delete it, visit the /logout URL.

Deploy