I was working with the Gorilla sessions example https://gowebexamples.com/sessions/, and I am having a problem with the "logout". I created the given file, and ran it. the initial attempt to access /secret correctly resulted in the "Forbidden" response, and after a /login, the /secret also responded correctly.
However, after calling /logout, when I call the /secret, I am still getting the secret message response rather than the Forbidden. [sandbox]$ curl -s http://localhost:8080/secret Forbidden [sandbox]$ curl -s -I http://localhost:8080/login HTTP/1.1 200 OK Set-Cookie: cookie-name=MTUxNjcxMTE1OHxEdi1CQkFFQ180SUFBUkFCRUFBQUpmLUNBQUVHYzNSeWFXNW5EQThBRFdGMWRHaGxiblJwWTJGMFpXUUVZbTl2YkFJQ0FBRT18JC9uj8s0vpPWRcuN6NOaziL3oksL4As0bg-ac81_x74=; Path=/; Expires=Thu, 22 Feb 2018 12:39:18 GMT; Max-Age=2592000 Date: Tue, 23 Jan 2018 12:39:18 GMT Content-Type: text/plain; charset=utf-8 [sandbox]$ curl -s --cookie "cookie-name=MTUxNjcxMTE1OHxEdi1CQkFFQ180SUFBUkFCRUFBQUpmLUNBQUVHYzNSeWFXNW5EQThBRFdGMWRHaGxiblJwWTJGMFpXUUVZbTl2YkFJQ0FBRT18JC9uj8s0vpPWRcuN6NOaziL3oksL4As0bg-ac81_x74=" http://localhost:8080/secret The cake is a lie! [sandbox]$ curl -s --cookie "cookie-name=MTUxNjcxMTE1OHxEdi1CQkFFQ180SUFBUkFCRUFBQUpmLUNBQUVHYzNSeWFXNW5EQThBRFdGMWRHaGxiblJwWTJGMFpXUUVZbTl2YkFJQ0FBRT18JC9uj8s0vpPWRcuN6NOaziL3oksL4As0bg-ac81_x74=" http://localhost:8080/logout [sandbox]$ curl -s --cookie "cookie-name=MTUxNjcxMTE1OHxEdi1CQkFFQ180SUFBUkFCRUFBQUpmLUNBQUVHYzNSeWFXNW5EQThBRFdGMWRHaGxiblJwWTJGMFpXUUVZbTl2YkFJQ0FBRT18JC9uj8s0vpPWRcuN6NOaziL3oksL4As0bg-ac81_x74=" http://localhost:8080/secret The cake is a lie! Not sure if it makes a difference, but I am on a Mac - Sierra 10.12.6, golang 1.8.3 I appreciate any pointers. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.