Session

This page provides details of Session storage on Web

Session config

config/session.go

type SessionConfig struct {
   *session.Session
   Driver string `yaml:"driver" env:"SESSION_DRIVER"`
   Name   string `yaml:"name" env:"SESSION_NAME"`
   Host   string `yaml:"host" env:"SESSION_HOST"`
   Port   int    `yaml:"port" env:"SESSION_PORT"`
   DB     int    `yaml:"db" env:"SESSION_DB"`
}

Last updated