I would use a
Singleton [
^]object. To do that, create a class like this:
public class User
{
private static User instance;
private User() {}
public static User Instance
{
get
{
if (instance == null)
{
instance = new User();
}
return instance;
}
}
}
You can even extend this class to do validation/authentication/authorization... of the user.
In the simple form, I would assign the value of this logged in user and later on retrieve it.