Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kenny Burns 173 posts 305 karma points
    May 18, 2013 @ 14:09
    Kenny Burns
    0

    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:

    • GetUser
    • GetRolesForUser

    Has anyone come across this before? Am I missing something?

    Thanks,

    Kenny

  • Kenny Burns 173 posts 305 karma points
    May 18, 2013 @ 17:23
    Kenny Burns
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft