Registry / web-framework / alexedwards-scs-v2

alexedwards-scs-v2

JSON →
library2.9.0gogounverified

Package scs provides a session management library for Go HTTP servers.

go get github.com/alexedwards/scs/v2
INSTALL
IMPORT
SIG · ALEXEDWARDS-SCS-V2
A
alexedwards-scs-v2
web-frameworkgov2.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

scs
github.com/alexedwards/scs/v2

Store and retrieve session data in an HTTP handler

package main import ( "net/http" "github.com/alexedwards/scs/v2" ) func main() { sessionManager := scs.New() mux := http.NewServeMux() mux.HandleFunc("/put", func(w http.ResponseWriter, r *http.Request) { sessionManager.Put(r.Context(), "key", "value") }) http.ListenAndServe(":4000", sessionManager.LoadAndSave(mux)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.9.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
OpenAI (training)
1
Resources
alexedwards-scs-v2 — go get alexedwards-scs-v2 · libregistry