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 }
func init() { Manager = new(DefaultSecurityManager) Manager.SetSessionManager(session.NewMemory(30 * time.Minute)) }