SkillAgentSearch skills...

Session

Package session is a middleware that provides the session management for Flamego

Install / Use

/learn @flamego/Session
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

session

GitHub Workflow Status GoDoc

Package session is a middleware that provides the session management for Flamego.

Installation

go get github.com/flamego/session

Getting started

package main

import (
	"github.com/flamego/flamego"
	"github.com/flamego/session"
)

func main() {
	f := flamego.Classic()
	f.Use(session.Sessioner())
	f.Get("/", func(s session.Session) {
		s.Set("user_id", 123)
		userID, ok := s.Get("user_id").(int)
		// ...
	})
	f.Run()
}

Getting help

License

This project is under the MIT License. See the LICENSE file for the full license text.

Related Skills

View on GitHub
GitHub Stars11
CategoryData
Updated1mo ago
Forks3

Languages

Go

Security Score

95/100

Audited on Feb 1, 2026

No findings