followup...access control properties on page

D

darrel

So, a few weeks ago I asked about an issue I had with our CMS tool where we
were using the following method:

- person logs in, we check credentials against DB
- we store credentials in cookie
- we create a userControl that reads cookie and sets PUBLIC SHARED
variables
- we then load this userControl on each page and reference said variables
whenever we need to check credentials.

This doesn't work due to the SHARED keyword in that the variables are being
reset by every person logging in. This is bad.

The answer seems to be that I should instead use Properties in the user
control.

What I'm confused about is how would one reference said properties from the
page that is loading the usercontrol. I've always been a bit confused by the
'page'/control relationship in terms of sharing data.
 

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,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top