LoggedIn doesn't seem to be

Discussion in 'ASP .Net Security' started by Iain, Feb 9, 2007.

  1. Iain

    Iain Guest

    I've got an asp.net application which uses Forms based security with the
    default provider (sqlexpress in the App_Data directory).

    My login page just has the login control plopped on it with the LoggedIn
    event handled. This checks the role and redirects to an aspx page depending
    on the role.

    However, when I check the roles of the currently logged in user it appears
    to either be the role of the previously logged in user or possibly a null
    user when logging in for the first time (no roles at all).

    If I log in twice with the same username, then the second time it gets the
    correct roles.

    I'm probably missing something obvious
     
    Iain, Feb 9, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. D E
    Replies:
    3
    Views:
    328
    Murray
    May 7, 2004
  2. Shimon Sim
    Replies:
    5
    Views:
    4,482
    Steven Cheng[MSFT]
    Jun 9, 2006
  3. =?Utf-8?B?SmF2?=
    Replies:
    2
    Views:
    2,134
  4. =?Utf-8?B?SWFpbg==?=

    Roles not loaded at in LoggedIn event

    =?Utf-8?B?SWFpbg==?=, Mar 8, 2007, in forum: ASP .Net
    Replies:
    6
    Views:
    519
    =?Utf-8?B?SWFpbg==?=
    Mar 16, 2007
  5. Maxus
    Replies:
    0
    Views:
    459
    Maxus
    Apr 12, 2007
Loading...

Share This Page