Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > obtaining current username after login using forms authentication

Reply
Thread Tools

obtaining current username after login using forms authentication

 
 
Jason \(MFT1\)
Guest
Posts: n/a
 
      08-15-2003
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?


 
Reply With Quote
 
 
 
 
Jason \(MFT1\)
Guest
Posts: n/a
 
      08-15-2003
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?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best practices for using forms authentication and security in a hosted env (was: Re: Using a Forms authentication in a shared hosting environment) JEFF ASP .Net 1 11-12-2007 07:00 PM
Forms authentication - Multiple login forms based on directory acc Keltex ASP .Net Security 1 01-24-2006 03:06 PM
Strange problem with Forms authentication: After successfull login, login page is still displayed Pascal Blanchard ASP .Net Security 1 08-18-2004 08:36 AM
Strange problem with Forms authentication: After successfull login, login page is still displayed Pascal Blanchard ASP .Net Security 0 08-17-2004 06:26 PM
Username not logged in IIS when using forms authentication with Active Directory ThaYoung1! ASP .Net Security 0 08-07-2003 12:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57