I\'m adding a logout expiration alert to my application and would like to access my web.config forms authentication \"timeout\" value from my code. Any way i could do this?
Configuration conn = WebConfigurationManager.OpenWebConfiguration(""); AuthenticationSection section = (AuthenticationSection)conn.SectionGroups.Get("system.web").Sections.Get("authentication"); long cookieExpires = System.Convert.ToInt64(section.Forms.Timeout.TotalMinutes);