I am currently implementing a custom membership/role provider and so far so good. However I seem to have run into an issue where I can't get access to (or set) the HttpContext.Current.Session in most methods - just getting a object not set to a reference error:
GetUser
GetRolesForUser
Has anyone come across this before? Am I missing something?
Overriding Membership/Role Providers - Session Issue
Hello,
I am currently implementing a custom membership/role provider and so far so good. However I seem to have run into an issue where I can't get access to (or set) the HttpContext.Current.Session in most methods - just getting a object not set to a reference error:
Has anyone come across this before? Am I missing something?
Thanks,
Kenny
UPDATE: I have a feeling it is because roles and permissions are assigned before the HttpContext.Current.Session becomes available. (in the process)
Might need to try a different route..! Back to the drawing board.
K
is working on a reply...