473,395 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Login Control LoggedIn event is user Authenticated

I am working with LogIn control and need to set some property for profile
after user is authenticated. I thought that LoggedIn event is the right
place but system tells me that the property can't be set for anonymous user.
I checked User.Identity.IsAuthenticated = false. So when is the good place
to set profile properties? Again I need to set up it only once right after
user logged in.
Thank you.
May 25 '06 #1
5 4147
Shimon,
To enable profile operation for the anonymous user, you must add this to
your web.config (along with other items):

<system.web>
<anonymousIdentification enabled="true"/>

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Shimon Sim" wrote:
I am working with LogIn control and need to set some property for profile
after user is authenticated. I thought that LoggedIn event is the right
place but system tells me that the property can't be set for anonymous user.
I checked User.Identity.IsAuthenticated = false. So when is the good place
to set profile properties? Again I need to set up it only once right after
user logged in.
Thank you.

May 25 '06 #2
Hello Shimon,

As other member has mentioned, you need to first enable
"anonymousIdentification" and also set those certain profile properties to
"allowAnonymous" accessing. And as for the Login control's "LoggedIn"
event, it is specific to the login page scope which can let us do some
operation on the page to update the UI after the user has clicked login
button and successfully loggedin. However, that that event time, the
HttpContext.User(or the profile service identity) is still not updated yet,
so this event is not quite suitable for your task.

Based on my research, if you want to adjust some profile properties after
the user has loggedIn(change from anonymousIdentity to a valid
authenticated identity), you can use the ProfileModule's "MigrateAnonymous"
event which will get fired after the user has loggedIn and this event is
specific to profile service. You can migrate some profile properties' value
from original anonymous identity to the authenticated identity:

#ProfileModule.MigrateAnonymous Event
http://msdn2.microsoft.com/en-us/lib...ofilemodule.mi
grateanonymous.aspx

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 31 '06 #3
Hey Shimon,

How are you doing on this issue, does my last reply helps you a little? If
there is anything else we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 8 '06 #4
Thanks
I didn't know that you answered anything till now. For some reason Outlook
Express missed it.
I just checked in on the web - using web reader.
Thanks it was helpful.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:9G**************@TK2MSFTNGXA01.phx.gbl...
Hey Shimon,

How are you doing on this issue, does my last reply helps you a little? If
there is anything else we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 8 '06 #5
You're welcome Shimon,

Feel free to post here when you need any help:-)

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Jun 9 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
1
by: EricRybarczyk | last post by:
I am starting a rewrite of an existing Classic ASP web site in ASP.NET 2.0. The existing ASP application has several types of users, each with a separate login process (separate login page,...
3
by: Bruce | last post by:
I just started the design of an ASP.NET application which accesses one of our custom web services to provide user authentication, among other purposes. I created a log-in page (code below),...
2
by: IdleBrain | last post by:
Hello All: I used a Login control to authenticate a user to login. The problem is that when I login with good username & password, the login view would say that the login was successful. But...
3
by: =?Utf-8?B?TWFyY0c=?= | last post by:
I have a Server.Transfer in my asp:Login LoggedIn event handler. I am forcing transfer to a specific page since I do not want to use the ReturnURL that is in Request.Params (i.e., the user...
10
by: Victor | last post by:
hi guys. In my project, now I am using a asp.net login control and a customized membership provider to do the form authentication. Now I want some function that user can skip the login form and be...
0
by: Maxus | last post by:
Hi People, I have written a custom membership and custom roles classes for my application. Then added a asp:Login control to the page. I then hooked into the LoggedIn method of the asp:login...
1
by: Rusty Hill | last post by:
My site does not allow anonymous users. After a user has logged in and been authenticated I need to access some information in their profile object. I thought I would do this in the LoggedIn...
2
by: kpg* | last post by:
Hi all, asp.net 2.0 I'm using the login control with no frills to authenticate users. I want to add a value to the user's profile when the user successfully logs in, but I want to do this...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.