TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Show logged in state on SaaS marketing site?

6 pointsby webignitionover 7 years ago
The main horizontal nav at the top of a SaaS service will typically present options to either log in or sign up. Which of the two is shown is dependent on the logged-in state of the user (if logged_in display_account_link else display_sign_in_link).<p>Some SaaS services ignore the logged-in state of the user on the not-the-product-itself marketing site. An example is MailChimp where I am shown &#x27;Sign Up Free&#x27; and &#x27;Log in&#x27; options when viewing https:&#x2F;&#x2F;mailchimp.com regardless of whether I have already logged in. I&#x27;m assuming this to be an intentional choice and not a bug as it has been that way for years.<p>Some SaaS services respect the logged-in state of the user on the marketing site (if logged_in display_account_link else display_sign_in_link) in addition to doing so within the product itself. I can&#x27;t find any real-life examples of this other than for a service I am currently developing. Examples welcome if you know of any!<p>My questions:<p>Are there any best practices, from a user perspective of, of choosing one of the above options (never respect&#x2F;always respect logged-in state on the marketing site) over the other?<p>I can see how never respecting the logged-in state on the marketing site has technical benefits with respect to something something complexity and something something security something something.<p>Do you find yourself confused when ending up at a given service&#x27;s marketing site and thinking that you are not logged in when you thought you were?<p>I ask as the additional complexity and security aspects of respecting the logged-in state on the marketing site of a Saas product is something I have to deal with and think about from time to time.<p>When wearing my engineering hat I want to go with the MailChimp way of doing things. When wearing my UX hat I want to respect the logged-in state of the user at all times. Sometimes my hats argue between themselves.

4 comments

salukiover 7 years ago
I recommend leaving the marketing page content the same for logged in users to view pricing, etc even if they are logged in.<p>If they are logged in and they click signup or login most frameworks detect that and you can automatically send them to their dashboard.<p>I like to show dashboard instead of log in for logged in users, I leave pricing&#x2F;signup the same in case they want to view what the current plan offerings are.<p>As far as UX I don&#x27;t like seeing log in if I&#x27;m already logged in but other than that I wouldn&#x27;t worry about it too much. Not a huge issue either way.<p>Good luck with your SaaS.
mtmailover 7 years ago
I&#x27;m used to see &quot;sign up now!&quot; and similar marketing on the www subdomain (homepage, often powered by Wordpress) when I know I already have an account. The SaaS app often runs on a app. or dashboard. or manage. subdomain. Usually clicking &#x27;login&#x27; goes to the SaaS app with a note &#x27;you&#x27;re already logged in&#x27;.<p>I wouldn&#x27;t worry. It&#x27;s a UI optimization which can have considerable technical complexity. E.g. you want to move the cookie to a different (shared) domain, the www site cannot decrypt the cookie because it has no shared secrets (or different programming language), logging out of one page should update the links on the other.<p>On our SaaS it was easy (shared platform). We only added it to be able to pre-fill API keys in documentation (makes it easier for users to copy&amp;paste code, <a href="https:&#x2F;&#x2F;geocoder.opencagedata.com&#x2F;tutorials&#x2F;geocode-in-nodejs" rel="nofollow">https:&#x2F;&#x2F;geocoder.opencagedata.com&#x2F;tutorials&#x2F;geocode-in-nodej...</a>). Without that benefit I wouldn&#x27;t have spent the time.
onion2kover 7 years ago
There is no good reason for your marketing website to have access to your application database or your customer&#x27;s session data, especially not for something as trivial as changing the text on a link.
ajeet_dhaliwalover 7 years ago
At tesults.com, the home&#x2F;marketing page ignores the logged in status of the user from a UI perspective. If a logged in user actually goes to the home page we redirect them away back to their control panel &#x2F; results view because we found that’s what they really wanted. If they really want to see the marketing page they can do so by clicking a link on the footer.