ASP.NET FormLogon Based App Problem

Posted on 2005-04-13
Last Modified: 2010-04-07
Hi all!

    I have a Portal that uses Forms Based Authentication. When the user enter a valid user and password, my app generates a tiket informing that the user was logged. With this, I could see restricted pages on my portal. Then, i get a link to a secure page and save it to the clipboard. After this, i click on the logout button, that call the FormsAuthentication.SignOut method. So, the system points me back to my login page. But, if I try to access the address that i copied to the clipboard without re authenticate, the system permits the vizualization. Does anybody knows what could be wrong?

Question by:regisdaniel
    LVL 25

    Expert Comment

    Checkout the following article:

    Best, Nauman.
    LVL 25

    Accepted Solution

    You have to add like the following code in your page_load event in the pages that required authentication:

    If User.Identity.IsAuthenticated Then
        'display Credential information
        displayCredentials.InnerHtml = "Current User : <b>" & User.Identity.Name & "</b>" & _
           "<br><br>Authentication Used : <b>" & User.Identity.AuthenticationType & "</b>"
        'Display Error Message
        displayCredentials.InnerHtml = "Sorry, you have not been authenticated."
      End If

    Best, Nauman.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now