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,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top