Page.User.Identity.Name

  • Thread starter Thread starter Brian Conway
  • Start date Start date
B

Brian Conway

Does anyone know how I can assign a Session variable to this? so that I can
pull it back out on another page?
 
Use Guid instead - Assign Guid to each session and then use it for user
authentication. More secure, more reliable, faster
 
I can't I need the login information to pull dynamic datasets based off of
who logins in, and need to update a table with the login user id which they
used to log in with, which I carry with a Session variable so that I can use
it in two other queries that are built based off of it.
 
Can this be done with Web Forms? I forgot to put that this is a web app.


Daniel Jin said:
that can only be set when an IIdentity is created. you have to manually
handle the forms authentication process (assuming you are using forms
authentication) by participating in either
FormsAuthentication_OnAuthenticate or HttpApplicant.AuthenticateRequest
directly. look up the topics in the documentation under forms
authentication, it will tell you how to customize authentication ticket etc
to achieve this.
 
Back
Top