Exemplo n.º 1
0
func init() {
	sm = new(DefaultSecurityManager)
	r, _ := realm.NewIni("ini", strings.NewReader(ini))
	sm.SetRealm(r)
	sm.SetSessionManager(session.NewMemory(30 * time.Second))

	sm.Debug = true
}
Exemplo n.º 2
0
func init() {
	Manager = new(DefaultSecurityManager)
	Manager.SetSessionManager(session.NewMemory(30 * time.Minute))
}