The System.Web.Security.Membership class is a static class with static
methods. In other words, you can get to it from any point in your code, as
long as the namespace is resolved. However, when you say "I cannot access
the membership class" you are not describing anything that helps diagnose
what problem you're having. What exactly are you doing to "access" the
class, and what is the result/behavior/exception that you are experiencing?
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"David Lozzi" <dl****@nospam.nospamwrote in message
news:28**********************************@microsof t.com...
Howdy,
My biggest annoyance with the membership class is that i cannot seem to
get to it in my master files. I'd like to setup my master file to check
for whether or not the current user is logged in or not, and if they are
not, send them over to the login page. But I cannot access the membership
class in a master page. I've done some reading up on this and some people
have suggested using a session variable to store a flag to indicate
whether or not the user is logged in. I tried that but it appears the
membership class expires sooner than the session does. Any ideas?
Thanks,
David Lozzi