-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
Milestone
Description
by frel8817:
What steps will reproduce the problem? 1. Set a cookie in a http-handler. expiration := time.Now() expiration.AddDate(1, 0, 0) cookie := http.Cookie{Name: "browserID", Value: "my value", Expires: expiration} http.SetCookie(w, &cookie) 2. Read the cookie. cookie, err := r.Cookie("browserID") if err != nil { fmt.Fprintf(w, err.Error()) return } fmt.Fprintf(w, cookie.Name) What is the expected output? browserID What do you see instead? nothing Which compiler are you using (5g, 6g, 8g, gccgo)? go_appengine_sdk_linux_amd64-go1beta2 Which operating system are you using? Linux Mint 11 x64 Please provide any additional information below. See discussion, https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/UNzkKcQxC9Y