Authenticate newly created Member

Discussion in 'ASP .Net Security' started by rshillington, Jun 28, 2006.

  1. rshillington

    rshillington Guest

    I have my own subscription page that prompts for Membership info, among
    other things. when the user submits a valid page I would like to 1)
    Membeship.CreateUser and 2) automatically log in the newly created
    user. Step 1 is simple, but it's not clear to me how to do step 2

    Thanks in advance for any suggestions,

    Ralph Shillington
     
    rshillington, Jun 28, 2006
    #1
    1. Advertising

  2. rshillington

    PeterKellner Guest

    On 28 Jun 2006 12:13:10 -0700, "rshillington" <>
    wrote:

    >I have my own subscription page that prompts for Membership info, among
    >other things. when the user submits a valid page I would like to 1)
    >Membeship.CreateUser and 2) automatically log in the newly created
    >user. Step 1 is simple, but it's not clear to me how to do step 2
    >
    >Thanks in advance for any suggestions,
    >
    >Ralph Shillington


    for step 2, you can do this to get the user logged in.

    FormsAuthentication.Authenticate("username", "password");

    Peter Kellner
    http://peterkellner.net
    Peter Kellner
    http://peterkellner.net
     
    PeterKellner, Jun 29, 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. Earl Teigrob
    Replies:
    0
    Views:
    328
    Earl Teigrob
    Aug 5, 2003
  2. David Lozzi

    Get newly created record's ID??

    David Lozzi, Dec 7, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    407
    Jacco Schalkwijk
    Dec 7, 2004
  3. =?Utf-8?B?bWN3b29x?=

    Error Debubbing newly created ASP.NET Project

    =?Utf-8?B?bWN3b29x?=, Nov 11, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,340
    Steven Cheng[MSFT]
    Nov 15, 2005
  4. Replies:
    1
    Views:
    554
    John Timney \( MVP \)
    May 31, 2006
  5. Edward Lorden

    HTTP 403 error on a newly created web site

    Edward Lorden, Jun 2, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    8,927
    Edward Lorden
    Jun 2, 2006
Loading...

Share This Page