obtaining current username after login using forms authentication

J

Jason \(MFT1\)

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?
 
J

Jason \(MFT1\)

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top