We help IT Professionals succeed at work.

asp.net login control logged in event - keep getting return URL

mugsey asked
Medium Priority
Last Modified: 2013-12-17
I am using standard asp.net membership and roles that works fine.
Once logged in I am using the "logged in event" to authenticate to a third party forum application that also seems to work, ie, it does authenticate the user on the forum application.  

However once authenticated on the forum I cannot get past the login screen, I keep getting the returnURL back to login page.
If I take out the forum authentication code it works fine.

Here is a sample of the code I use to authenticate once logged in

                    // create an instance of the ForumApp.ForumApp.Components.User object
                    // from the user identity within the ForumApp_Users table
                    ForumApp.ForumApp.Components.User User = new ForumApp.ForumApp.Components.User(UserID);
                    // and log the ForumApp.ForumApp.Components.User object into the forums
                    User.Authenticate(false, false);
                    ForumApp.Common.Authentication.Authentication.Login(User, true);

However I cannot get past the login screen,  if I take it out it works fine.

Watch Question

Praveen VenuTechnical Project Manager

is it InstantForum that you use?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
This is because, you have not set the authentication cookie properly. Try using the following API



yes it is and thank you for your replies!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.