Take the 2-minute tour ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

I have a normal web-app (website) with login and logout links. The logout link only appears if the user is logged-in and vice versa.

However, there is nothing preventing the user from manually typing the login URL in the browser (or clicking on a bookmark).

Which is the better user experience in this case?

  1. User is taken to the login page as requested (even though he is already logged in)
  2. User is redirected to the post-login or homepage like how Gmail does.
share|improve this question
1  
Another common use case where someone might get to the sign in page even though they are already logged in is someone bookmarks the sign in page and uses that to get to the site. It is my opinion that they should be directed to the post-sign in page. –  MikeNereson Sep 25 '12 at 21:26
add comment

1 Answer 1

up vote 16 down vote accepted

The most expected result would be to duplicate the default redirect that would happen in typical login. For example, if there is a "Login" link in the global nav, the expected result logging in would be to authenticate the user, then land the user back to the page from which the login initiated. If there is a section of the site that is gated by login, and the user links directly to a protected page, then login would be expected to redirect to the protected page that the user had linked to initially while still anonymous. In the case you are asking about, (2) is the best experience if the user is not otherwise navigating to some known page.

I am working right now with a system that does allow you to return again to the login screen even if you are already authenticated. It is terribly confusing. Users should never see the login screen if they are already authenticated.

share|improve this answer
    
Thanks, that's completely coherent with my thinking too. –  adarshr Sep 25 '12 at 15:44
    
Great answer, @Steve! You beat me to this answer :-) –  Benny Skogberg Sep 25 '12 at 16:00
    
+1 Interesting use case I just found myself in: having two tabs open to the same site; logged in on one; then used "log in" link on second. Instead of taking me to the default post-log-in page, it took me to my account... Pretty neat distinction in recognizing difference between already logged in entering the site and already logged in when already in a session. –  Marjan Venema Sep 26 '12 at 9:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.