Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bart 4 posts 24 karma points
    May 21, 2010 @ 14:50
    Bart
    0

    loginstatus controls in templates not working

    Umbraco version 4.1, asp.net 3.5, window 2008 iis 7.5

    I'm trying to implement a single sign on implementation to get a single sign-on point and member database for several umbraco sites we will be hosting on different domains.

    I have a demo solution working outside umbraco. I'm now trying to implement it in umbraco and have thus enabled forms authentication and the asp.net sqlmembership provider and placed a custom login page (aspx). I can now logon using the the new login page and the loginstatus control text on it changes to logoff (a sure sign logon was successfull). A test page (aspx) with the same control deployed to different umbraco folders works fine. But when I put the loginstatus control inside a umbraco template it just keeps displaying the login text.

    Placing this <%= Context.User.Identity.IsAuthenticated.ToString() %> in a template gives me an error because the user object is null. Does anyone know why this is happening? Non umbraco pages work fine so what is it, that is different about the umbraco templates?

  • Peter Dijksterhuis 1442 posts 1722 karma points
    May 21, 2010 @ 15:32
    Peter Dijksterhuis
    0

    Hi Bart,

    please check out Lee's excelent blogpost:

    http://www.blogfodder.co.uk/post/IIS7-Membership-Directory-URLs.aspx

    It might help you.

    Regards,

    Peter

Please Sign in or register to post replies

Write your reply to:

Draft