B
bryan
Hello,
I have a an asp.net application in c#. The code behind files call
helper methods in regular c# classes.
For example, on some pages I check if the current user has permission
to use certain buttons. To do this I call the
SecurityHelper.GetAllowedRoles(string username....)
If the user is allowed, I enable the buttons.
But each call to GetAllowedRoles(...) accesses the database. Instead, I
want to add the retrieved info to the session state. However, the
Session object does not seem to be available from the SecurityHelper
class.
What is a good solution to this?
Bryan
I have a an asp.net application in c#. The code behind files call
helper methods in regular c# classes.
For example, on some pages I check if the current user has permission
to use certain buttons. To do this I call the
SecurityHelper.GetAllowedRoles(string username....)
If the user is allowed, I enable the buttons.
But each call to GetAllowedRoles(...) accesses the database. Instead, I
want to add the retrieved info to the session state. However, the
Session object does not seem to be available from the SecurityHelper
class.
What is a good solution to this?
Bryan