Logging out a user question

Discussion in 'HTML & Website Design' started by qwikad.com, Jul 9, 2024.

  1. #1
    What are some pros and cons of logging out a user from one browser if they log into the same account in another browser? How common is it?
     
    qwikad.com, Jul 9, 2024 IP
  2. GreenHost.Cloud

    GreenHost.Cloud Active Member

    Messages:
    471
    Likes Received:
    34
    Best Answers:
    3
    Trophy Points:
    73
    #2
    Pros:
    1. Improved security: Logging out a user from one browser when they log into the same account in another browser can help prevent unauthorized access to their account.
    2. Prevents multiple active sessions: It helps prevent confusion by ensuring that the user only has one active session at a time, reducing the risk of conflicting actions.
    3. Enhanced user experience: It ensures that the user is always using the most up-to-date session and data when accessing their account.
    Cons:
    1. Inconvenience for users: Logging out a user from one browser may disrupt their workflow and require them to log in again, which can be frustrating.
    2. Lack of flexibility: Some users may prefer to have multiple active sessions for convenience and ease of access.
    3. Data loss risk: If the user forgets to save their work before being logged out, they may lose any unsaved data.
     
    GreenHost.Cloud, Jul 9, 2024 IP
    qwikad.com likes this.
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,789
    Likes Received:
    4,528
    Best Answers:
    123
    Trophy Points:
    665
    #3
    Good for security but what's the business problem you're trying to solve?

    If I log into a site on my phone and decide it'll be easier to finish the task on my laptop I expect to still be logged in on my phone when I return to it.

    Spotify allow you to only be logged in on one device and that's to stop people sharing the service with friends and family etc. There's a clear "business problem" and they've solved it well.

    You will need to store log in info in your database along with the IP and user_info so that you know which login to honour.
     
    sarahk, Jul 9, 2024 IP
    qwikad.com likes this.
  4. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,262
    Likes Received:
    1,693
    Best Answers:
    31
    Trophy Points:
    475
    #4
    Excellent points both of you. Thank you. I don't want to have an unlimited login, for security reasons, as you also mentioned. I'm thinking about 3-5 logins for the same account on different devices / browsers.
     
    qwikad.com, Jul 11, 2024 IP
  5. webdesigner5123

    webdesigner5123 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    I often use a laptop and desktop. And it's very annoying when a website logs me out every time I switch machines
     
    webdesigner5123, Jul 11, 2024 IP