• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

ASP.NET FormLogon Based App Problem

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?

Thanks!!!
0
regisdaniel
Asked:
regisdaniel
  • 2
1 Solution
 
nauman_ahmedCommented:
Checkout the following article:

http://www.15seconds.com/issue/020220.htm

Best, Nauman.
0
 
nauman_ahmedCommented:
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>"
  Else
    'Display Error Message
    displayCredentials.InnerHtml = "Sorry, you have not been authenticated."
  End If


Best, Nauman.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now