session.go 238 B

1234567891011121314151617
  1. package configs
  2. import (
  3. "time"
  4. "github.com/gofiber/fiber/v2/middleware/session"
  5. )
  6. var Store *session.Store
  7. func SetupStorage() {
  8. Store = session.New(session.Config{
  9. Expiration: time.Hour * 24 * 30,
  10. })
  11. Store.RegisterType("")
  12. }