Author: yet_alive | Posted on: 11/26/2006 7:29:31 AM | Views : 272

Hi :)
-I have a class called UserInfo class that contains a property of type: MembershipUser as well as other additional properties like address..etc (cause MembershipUser was not enough for my requirements)
-I am using asp net LogIn control to authenticate a user..
-then i need to find an event that will store the full user object in a session.. i should have used the LogIn control's "LoggedIn" event but it doesnt work as it should.. cause it always returns a null user when u call Membership.GetUser
So as a temp thing:I am using a button! that when clicked after log in.. Gets the current logged in user name by calling: Membership.GetUser
then it calls my own implemented GetUser(userName)  passing the userName to return my full UserInfo object.. and then it stores it in a session
 
I have provided a method in my security layer called: GetCurrentUser() w ...

Go to the complete details ...