| Dave Friedel 2005-03-25, 4:00 am |
| I read through the WS2 samples but I am still fuzzy on how to access the
settings I need to validate my users passwords.
Specifically, I do not know how to tell which hostheader is being accessed
in the UsernameTokenManager. I typically run many virtual directories where
a setting in the Web.Config points to a configuration file on the local
server (still paranoid about giving reachable access to a file with
passwords etc.) Since many virtual directories CAN read the same
configuration file - I use the host header to decipher the location within
the xml file to retrieve my settings. As a temporary work around - for the
host header issue - I pass the header along with the username which
circumvents the problem.
But now I have quite abit of accesses to a file and I would like to take
advantage of caching. In my Application Start - I use the CacheDependancy
on a file where it detects of the file changes and updates (a great
feature) - but I am lost to how to access the cache instance on the server.
I can't seem to access the "Context" object - am I missing an object that
allows me to use cache from within the UsertokenManager?
regards,
Dave
|