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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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