Custom RoleProvider question -- saving roles

B

Burak Gunay

Hello,

I derived a custom provider from the provider class. I then set

cookieless="UseUri"

in the web.config, because we don't want data stored on client
machines.

Everytime a page with an <asp:loginview> is called, the Role Provider
page
gets called and the database gets queried.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top