Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Anonymous

Reply
Thread Tools

Anonymous

 
 
shapper
Guest
Posts: n/a
 
      11-27-2008
Hello,

I am trying to delete the anonymous user identifier and profile after
he/she had registered. I tried:

public void Profile_MigrateAnonymous(object sender,
ProfileMigrateEventArgs e) {
ProfileHelper anonymous = ProfileHelper.GetProfile
(e.AnonymousID);
ProfileHelper profile = ProfileHelper.GetProfile
(e.Context.Profile.UserName);
profile.Visitor = anonymous.Visitor;
profile.Save();
AnonymousIdentificationModule.ClearAnonymousIdenti fier();
}

I am using ASP.NET MVC and this is not firing ...

I also tried to apply the following:

AnonymousIdentificationModule.ClearAnonymousIdenti fier();

On my controller but it says I can only apply this if the user is
authenticated.

My idea to solve this is when a user logins, check if there is an
anonymous id and if yes then delete it ...

Can I do this?

How can I do it?

I am a little bit lost on how to solve this problem ... I have been
trying everything that comes to my mind but no success.

Thanks,

Miguel
 
Reply With Quote
 
 
 
Reply

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
Is this a local anonymous class or a member anonymous class Reporter Java 3 05-12-2007 05:23 AM
help with an anonymous array of anonymous hashes noeldamonmiller@gmail.com Perl Misc 1 02-10-2005 01:08 AM
Problem when using and creating nested (anonymous) arrays. moller@notvalid.se Perl 1 02-18-2004 12:35 AM
How do I call sort with an anonymous subroutine stored in a hash ?? Casey Perl 3 01-30-2004 03:39 PM
Pix is anonymous proxy from outside Sean James Cisco 2 12-08-2003 04:22 PM



Advertisments