Dears, I want to attach application logged in user to Session. I found that there is property Session.Configuration.Username. can i set the username property to logged in username ,so that i can access it anywhere. i want to set this property on my Login Page , but how to access Session Object in my login page. pls help Thanks HAN Updated at 18.07.2010 12:34:17Thanks for you reply. As of now, i am storing logged in username in a http session, my audit module is in different assembly, i want audit module to save username in database, i dont want to send http session object to my audit module. if you dont want me to use Session.Username, then how can i get username in audit module. Any help much appreciated Thanks HAN Updated at 19.07.2010 8:55:11Dear Alex, Thanks for your help. I am doing something like this:
my only question is, do i need to repeat this for all my Create/Update/Delete operations in all my pages. and is this the correct way and correct place of doing it.
thanks HAN This thread was imported from our support forum. The original discussion may contain more detailed answer. |
You can use e.g. Session.Extensions property to attach any additional info to Session. Domain also has the same property. See IHasExtensions interface for details. Alex, When do you plan on implementing the security system? Can you provide an ETA? Even a best-guess would suffice. As far as I can judge, the discussion continues here: viewtopic.php?f=29&t=6023 |
You can set Session.Name property via SessionConfiguration.Name - it is used in logging.
User name is really unused for now.
Sorry, I completely misunderstood the question.
Correct answer is: don't use Session.UserName for now. It is reserved for future implementation of access control system. When it's done, we'll provide appropriate information.