I am trying to figure out Forms authentication, this is what I have so far:<BR><BR>In my login page:<BR><BR>myTicket = New FormsAuthenticationTicket(1, sUsername, DateTime.Now, DateTime.Now.AddMinutes(5), True, sMCode, FormsAuthentication.FormsCookiePath)<BR> sHash = FormsAuthentication.Encrypt(myTicket)<BR> myCookie = New HttpCookie(FormsAuthentication.FormsCookieName, sHash)<BR> If myTicket.IsPersistent Then<BR> myCookie.Expires = myTicket.Expiration<BR> End If<BR> Response.Cookies.Add(myCookie)<BR><BR>In my global.asax page:<BR><BR>Dim myTicket As FormsAuthenticationTicket<BR> Dim myID As FormsIdentity<BR> Dim sUserData As String<BR> Dim sRoles As String()<BR><BR> If Not HttpContext.Current.User Is Nothing Then<BR> If HttpContext.Current.User.Identity.IsAuthenticated Then<BR> If TypeOf HttpContext.Current.User.Identity Is FormsIdentity Then<BR> myID = CType(HttpContext.Current.User.Identity, FormsIdentity)<BR> myTicket = myID.Ticket<BR><BR> sUserData = myTicket.UserData<BR> sRoles = sUserData.Split(",")<BR> HttpContext.Current.User = New GenericPrincipal(myID, sRoles)<BR> End If<BR> End If<BR> End If<BR><BR>And my Web.config file:<BR><BR>&#060;authentication mode="Forms"&#062;<BR> &#060;forms name="MyWebApp" loginUrl="member.aspx" protection="All" path="/" /&#062; <BR> &#060;/authentication&#062; <BR><BR>Why is my cookie not expired after 5 minutes, am I missing anything. Everything else seems to run fine except when trying to test my cookies experation. Thank you for your time.