ASP.NET 2.0 Login Control

G

Guest

Hi,
Quick question about the login control. I'm intercepting the OnLoggedIn
event and doing the following:

MembershipUser user = Membership.GetUser();

However, the user object is always null despite a successful logon. I'm
assuming it's got something to do with when the cookie is written to actually
signify a successful logon and at this point the Membership provider doesn't
actually know that I've logged on... either that or it's a bug ;-)

I saw another post by someone seeing a similar problem when calling
IsUserInRole() always returning false....no answer from MS on that one....any
chance someone can answer this query or at least suggest another work around.

TIA

Pete
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top