gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends. The key features are Simple API: use it as an easy way to set signed (and optionally encrypted) cookies. Built-in backends to store sessions in cookies or the filesystem. Flash messages: session values that last until read. A convenient way to switch session persistency (aka "remember me") and set other attributes. Mechanism to rotate authentication and encryption keys. Multiple sessions per request, even using different backends. Interfaces and infrastructure for custom session backends: sessions from different stores can be retrieved and batch-saved using a common API. First we initialize a session store calling NewCookieStore() and passing a secret key used to authenticate the session.

Features

  • Built-in backends to store sessions in cookies or the filesystem
  • Flash messages: session values that last until read
  • Convenient way to switch session persistency (aka "remember me") and set other attributes
  • Mechanism to rotate authentication and encryption keys
  • Multiple sessions per request, even using different backends
  • Simple API: use it as an easy way to set signed (and optionally encrypted) cookies

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

BSD License

Follow sessions

sessions Web Site

Other Useful Business Software
Application Monitoring That Won't Slow Your App Down Icon
Application Monitoring That Won't Slow Your App Down

AppSignal's Rust-based agent is lightweight and stable. Already running in thousands of production apps.

Full APM with errors, performance, logs, and uptime monitoring. 99.999% uptime SLA on the platform itself.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of sessions!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Frameworks

Registered

2023-01-19