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
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool 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