obtaining current username after login using forms authentication

Discussion in 'ASP .Net' started by Jason \(MFT1\), Aug 15, 2003.

  1. I'm using cookieless sessions and forms authentication for a website which
    only has light activity.

    I am using the authentication to protect only certain folders and all that
    works just fine. The usernames and passwords are stored in the code behind
    in a login subroutine rather than a database since there are so few users.

    What I now want to do relates to users who have already logged in and who
    submit any of the protected forms.

    Rather than have them reenter their info on the form I would like to have
    the form submit their user name along with the form without requiring them
    to retype the info in. (I do it now by the way whenever they log in so I
    know who is logging in on the system but that info is local to the login
    form).

    In old ASP we used session variables to do this. How might this be done with
    asp.net?
     
    Jason \(MFT1\), Aug 15, 2003
    #1
    1. Advertising

  2. Never mind. As usual I figured it out on my own. Thanks for all the "help".
    lol


    "Jason (MFT1)" <> wrote in message
    news:...
    > I'm using cookieless sessions and forms authentication for a website which
    > only has light activity.
    >
    > I am using the authentication to protect only certain folders and all that
    > works just fine. The usernames and passwords are stored in the code behind
    > in a login subroutine rather than a database since there are so few users.
    >
    > What I now want to do relates to users who have already logged in and who
    > submit any of the protected forms.
    >
    > Rather than have them reenter their info on the form I would like to have
    > the form submit their user name along with the form without requiring them
    > to retype the info in. (I do it now by the way whenever they log in so I
    > know who is logging in on the system but that info is local to the login
    > form).
    >
    > In old ASP we used session variables to do this. How might this be done

    with
    > asp.net?
    >
    >
     
    Jason \(MFT1\), Aug 15, 2003
    #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. mike
    Replies:
    1
    Views:
    426
    Peter Rilling
    Mar 23, 2006
  2. ThaYoung1!
    Replies:
    0
    Views:
    172
    ThaYoung1!
    Aug 7, 2003
  3. Pascal Blanchard
    Replies:
    0
    Views:
    248
    Pascal Blanchard
    Aug 17, 2004
  4. Pascal Blanchard
    Replies:
    1
    Views:
    280
    Pascal Blanchard
    Aug 18, 2004
  5. Keltex
    Replies:
    1
    Views:
    404
    Dominick Baier [DevelopMentor]
    Jan 24, 2006
Loading...

Share This Page