Capture the user role globally in application.
-
Hi, In my application I am using a function that is currently written in the app_code directory. This function called GetRole() gets the role of the logged-in user from the database table. The function is called from almost all of the pages and user controls in my application both on Page Load as well as on the PostBack events such as the click of a button etc. Now is it possible that I get the Users Role only once when the user launches the application and store it across all pages in my application. We are not allowed to use sessions. Any ideas would be appreciated. Thanks in advance, Aakar
-
Hi, In my application I am using a function that is currently written in the app_code directory. This function called GetRole() gets the role of the logged-in user from the database table. The function is called from almost all of the pages and user controls in my application both on Page Load as well as on the PostBack events such as the click of a button etc. Now is it possible that I get the Users Role only once when the user launches the application and store it across all pages in my application. We are not allowed to use sessions. Any ideas would be appreciated. Thanks in advance, Aakar
You can store it in Cookies or Cache.
aakar wrote:
We are not allowed to use sessions.
Why are you not allowed to use Sessions?
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
You can store it in Cookies or Cache.
aakar wrote:
We are not allowed to use sessions.
Why are you not allowed to use Sessions?
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
you can also use Profiling if you dont want to use session Regards,
Usman Munier Xavor Corporation Pakistan