{"id":70670,"library":"golangcollege-sessions","title":"Golang College Sessions","description":"Package sessions provides a minimalist and lightweight HTTP session cookie implementation for Go, using nacl/secretbox for encryption and authentication.","status":"active","version":"1.2.0","language":"go","source_language":null,"source_url":"https://github.com/golangcollege/sessions","tags":["session","http","cookie","encryption","authentication"],"install":[{"cmd":"go get github.com/golangcollege/sessions","lang":"bash","label":"Install github.com/golangcollege/sessions"}],"dependencies":[],"imports":[{"symbol":"sessions","correct":"github.com/golangcollege/sessions"}],"quickstart":{"code":"package main\n\nimport (\n\t\"net/http\"\n\t\"github.com/golangcollege/sessions\"\n)\n\nfunc main() {\n\tsessionManager := sessions.New([]byte(\"secret-key\"))\n\thttp.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\tsessionManager.Put(r.Context(), \"key\", \"value\")\n\t})\n}","lang":"go","description":"Initialize a session manager and store a value in a session."},"warnings":[{"fix":"Ensure the secret key passed to sessions.New is exactly 32 bytes.","message":"Session secret key must be 32 bytes long for nacl/secretbox.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'authent':22,27 'colleg':2 'cooki':13,25 'encrypt':20,26 'go':16 'golang':1 'http':11,24 'implement':14 'lightweight':10 'minimalist':8 'nacl/secretbox':18 'packag':4 'provid':6 'session':3,5,12,23 'use':17","created_at":"2026-06-17T18:17:50.580191+00:00","updated_at":"2026-06-17T18:17:50.580191+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/golangcollege/sessions","github":"https://github.com/golangcollege/sessions","docs":"https://pkg.go.dev/github.com/golangcollege/sessions#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}