Sub Application_PostAuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs) 'code that runs after the person has been authicated If User.Identity.IsAuthenticated Then Dim userdetails As MembershipUser = Membership.GetUser ' If userdetails.LastPasswordChangedDate < Today.AddDays(-48) Then If Request.RawUrl.Contains("/Account/ChangePassword.aspx") = False Then Response.Redirect("~/Account/ChangePassword.aspx") End If 'End If End If End Sub
|SignalR - getting new data from sql DB||5||79|
|Why is "packages element is not declared"?||2||128|
|Double hop Issues between IIS Server and Exchange Server/ Exchange Web Service||4||42|
|C# MVC and a global static factory that never dies||4||46|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!