sessions_cookies/

directory
v0.0.0-...-86d22a7 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: Apache-2.0

README

Web - Sessions and Cookies

Learn the basics of working with session and cookies for web applications.

Notes

  • The standard library has much of what you need to build services and apps.
  • The http package provides the building blocks.
  • There are other great packages in the Go ecosystem to help.

https://golang.org/pkg/net/http/
https://golang.org/doc/articles/wiki/
https://github.com/gorilla/sessions

Code Review

Using Session: Code | Test
Using Cookies: Code | Test

Exercises

Exercise 1

Take the session example and add support for storing the persons phone number. Save the information in session and make sure it can be retrieved. Then update the tests to validate this is working.


All material is licensed under the Apache License Version 2.0, January 2004.

Directories

Path Synopsis
Sample program to show how to use sessions in your web app.
Sample program to show how to use sessions in your web app.
Sample program to show how to use a cookie in your web app.
Sample program to show how to use a cookie in your web app.

Jump to

Keyboard shortcuts

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