+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / Authentication and User issues...

Authentication and User issues...

4 posts, 0 answered
  1. Bobby Ross
    Bobby Ross avatar
    14 posts
    Registered:
    02 Nov 2004
    08 Oct 2010
    Link to this post
    I am rather new to SiteFinity, but am having issues getting standard .NET Login controls to work on pages that I create.  I would prefer using the standard controls if possible but am having the following issues.

    System.Web.UI.WebControls.Login control does not authenticate users, must use Telerik.Sitefinity.Security.Web.UI.LoginForm.

    System.Web.UI.WebControls.LoginName control works fine once logged in, and can also get at identity details in code by using Page.User, etc.

    System.Web.UI.WebControls.LoginStatus control does not work..  Always says "Logout", and when clicked does not actually log the user out.  I have also attempted using FormsAuthentication.SignOut() in code, but the user still remains logged in. 
    Is there something sepecial that needs to be done to force a logout?

    I have read the documentation and see very little on the subject of security other than how to create a user, role, etc, but nothing on how to gain access to the user objects at runtime for front end membership.
    For example does the SiteFinity framework have something similar to Page.User that I should be using?


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Oct 2010
    Link to this post
    Hello Bobby,

    You cannot use the standard Login control directly. Please take a look at this post.

    You can force a log out by using SecurityManager.Logout(); method which deletes all authentication cookies for the principal.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. David
    David avatar
    1 posts
    Registered:
    06 Aug 2010
    20 Oct 2010
    Link to this post
    I don't have a Logout() method in Telerik.Security.SecurityManager() Is there an equivalent for the 3.x version?
    (I doubled checked my security dll using dotnet reflector, no Logout() method, not even private)

    I would like to be able to do this too.

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Oct 2010
    Link to this post
    Hi David,

    In 3.x edition you can use FormsAuthentication.SignOut().

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
4 posts, 0 answered