Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > LoggedIn doesn't seem to be

Thread Tools

LoggedIn doesn't seem to be

Posts: n/a
I've got an 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
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Context.User is Null in the LoggedIn method of the Login Control Maxus ASP .Net 0 04-12-2007 06:42 AM
Roles not loaded at in LoggedIn event =?Utf-8?B?SWFpbg==?= ASP .Net 6 03-16-2007 10:38 AM
Membership.GetUser returns 'nothing' in Login.LoggedIn event =?Utf-8?B?SmF2?= ASP .Net 2 10-04-2006 05:17 PM
Login Control LoggedIn event is user Authenticated Shimon Sim ASP .Net 5 06-09-2006 01:32 AM
loggedIn, same session, thru several pages D E Java 3 05-07-2004 04:17 PM