More in this section
Forums / General Discussions / Programatically Logging in from Code Behind

Programatically Logging in from Code Behind

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Matt Wolin
    Matt Wolin avatar
    2 posts
    Registered:
    30 Nov 2009
    09 Dec 2009
    Link to this post
    Hello,

    I am trying to figure out how I can programatically log in from a code behind page. I am trying to use a secure webservice to handle login as opposed to an asp.net Login control. Does anyone know if this is possible?

    Here is my code:

    string username = //from API 
    string password = //from API  
    Telerik.Security.UserManager man = new Telerik.Security.UserManager(); 
    man.ValidateUser(username, password); 

    Later on in the code if i check to see if the user is logged in he is not. Any ideas?
  2. Matt Wolin
    Matt Wolin avatar
    2 posts
    Registered:
    30 Nov 2009
    09 Dec 2009
    Link to this post
    Found my answer in a different thread:

    http://www.sitefinity.com/support/forums/sitefinity-3-x/security/set-current-user-to-logged-in.aspx
2 posts, 0 answered