Membership Login using code!!

Discussion in 'ASP .Net Security' started by Michael Fällgreen, Apr 11, 2006.

  1. Hi

    I have a site protected by membership og it works great. In some pages I
    would like to log a user in in "pure" code without controls. I see a
    validateUser but not a LoginUser-method. How can I do this?

    Thanks
    Michael Fällgreen, Apr 11, 2006
    #1
    1. Advertising

  2. Michael Fällgreen

    Brock Allen Guest

    FormsAuthentication.SetAuthCookie or FormsAuthentication.RedirectFromLoginPage

    -Brock
    http://staff.develop.com/ballen


    > Hi
    >
    > I have a site protected by membership og it works great. In some pages
    > I would like to log a user in in "pure" code without controls. I see a
    > validateUser but not a LoginUser-method. How can I do this?
    >
    > Thanks
    >
    Brock Allen, Apr 11, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    721
  2. John
    Replies:
    1
    Views:
    290
    Munna
    Jun 15, 2008
  3. Stephen Walch

    Using login alias in Membership Provider

    Stephen Walch, Oct 27, 2006, in forum: ASP .Net Security
    Replies:
    7
    Views:
    206
    Stephen Walch
    Oct 27, 2006
  4. KT
    Replies:
    1
    Views:
    150
    Dominick Baier
    Dec 11, 2006
  5. KT
    Replies:
    0
    Views:
    83
Loading...

Share This Page