Hey
i'm developing a role based user authentication in my desktop application.i need to add few roles like Admin, operator, etc...
i can get users role if i have user name of the logged in user.but after logging in the username cannot be retrieved again.So it has to be saved as a global variable,but since having global variable is not good for the code i want to know the best way i can create a role based authentication for my desktop application in c#.
thanks in advanced.