top

SessionOn = true SessionProvider = postgresql SessionSavePath = "user=a password=b dbname=c sslmode=disable" SessionName = session

Usage: import(

_ "github.com/astaxie/beego/session/postgresql"
"github.com/astaxie/beego/session"

)

func init() {
	globalSessions, _ = session.NewManager("postgresql", ``{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"user=pqgotest dbname=pqgotest sslmode=verify-full"}``)
	go globalSessions.GC()
}

more docs: http://beego.me/docs/module/session.md

Imports 2 package(s) ΒΆ

  1. github.com/astaxie/beego/session
  2. github.com/lib/pq