>>Hi all, please I need to know how to get the logged user for my audit procedure when changing data on tables.
>>T.I.A.
>
>>
http://msdn.microsoft.com/en-us/library/ms187934.aspx>
>>
http://msdn.microsoft.com/en-us/library/ms179930.aspx >
>Thank you Viv Phillips, but I did the question wrong, I mean a logged user from asp web page, I created a session variable with that name, then I need anyplace in the program audit with that session variable, because I'm using a generic user to connect.
Hmm. If you just want the value from a session variable then something like :
string s = (string)(Session["UserName"]);
but I've a feeling I still have not understood what you are asking :-{