Forum Discussion

Bill_S's avatar
Bill_S
Expert
12 years ago

Need to remove sign in link from mobile site once user is signed in

I found the post talking about replacing the "Sign In" link on the mobile home page with a "Sign Out" link.  I just wanted to know how to simply remove the Sign In link once the user is signed in.  Would it be...? 

 

<#if user.anonymous == true>
 <a href="${webUi.getUserLoginPageUrl("/")}">Sign in</a>
<#else>
 
</#if>

 

And since we had to change the standard SSO sign in page with a mobile version, can I replace the variable link with...?

 

<#if user.anonymous == true>
<a href=http://ourcustommobilesigninpagelink/>Sign in</a>
<#else>

</#if>

 

Finally, do I just include this in my custom compent for it to work?

 

Thanks

  • The code sample you specified should work. As for your second question, which sign in link were you looking to replace? Once you put this code in a custom component, you will have to replace the "sign in" link component with your custom component (on the page where you want this change reflected).

     

    Let me know if you need more help!

  • VenkS's avatar
    VenkS
    Lithium Alumni (Retired)

    The code sample you specified should work. As for your second question, which sign in link were you looking to replace? Once you put this code in a custom component, you will have to replace the "sign in" link component with your custom component (on the page where you want this change reflected).

     

    Let me know if you need more help!

    • Bill_S's avatar
      Bill_S
      Expert

      It worked perfectly.  As a matter of fact, I was able to use it to change the sign out as well. 

       

      By the way, what programming language is that?  Also, I am having problems getting the cookie cleared, so that I can sign back in to mobile without getting a default page that Salesforce assigns.  Is there any specific language I can add to the sign out that would help clear the session cookie?

       

      Thanks.