Solved login control logged in event - keep getting return URL

Posted on 2009-02-10
Last Modified: 2013-12-17
I am using standard 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.

Question by:mugsey
    LVL 15

    Expert Comment

    by:Praveen Venu
    is it InstantForum that you use?
    LVL 15

    Accepted Solution

    LVL 5

    Assisted Solution

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


    Author Comment

    yes it is and thank you for your replies!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now