B
Burak Gunay
Hello,
I derived a custom provider from the provider class. I set
cookieless="UseUri"
in the web.config, because we don't want data stored on client
machines.
Now, as I understand it, the information from the Membership Provider
gets serialized and saved on the url, but the same does not apply to
the RoleProvider info.
Everytime a page with <asp:loginview> is called, the Role Provider page
gets called and the database gets queried, whereas the database does
not need to be queried again for user info by the Membership Provider,
since the info is saved on the url.
I tried to save the roles() as a session variable in the Role Provider
page but since that page is a vb class, it does not recognize the
Session class.
How can we save the roles() info so that we don't have to call the Role
Provider each time to figure out the roles assigned to a user?
Thanks,
Burak
I derived a custom provider from the provider class. I set
cookieless="UseUri"
in the web.config, because we don't want data stored on client
machines.
Now, as I understand it, the information from the Membership Provider
gets serialized and saved on the url, but the same does not apply to
the RoleProvider info.
Everytime a page with <asp:loginview> is called, the Role Provider page
gets called and the database gets queried, whereas the database does
not need to be queried again for user info by the Membership Provider,
since the info is saved on the url.
I tried to save the roles() as a session variable in the Role Provider
page but since that page is a vb class, it does not recognize the
Session class.
How can we save the roles() info so that we don't have to call the Role
Provider each time to figure out the roles assigned to a user?
Thanks,
Burak