Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8309893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:15:50+00:00 2026-06-08T19:15:50+00:00

I have a login script which works but, I’m wondering how I should handle

  • 0

I have a login script which works but, I’m wondering how I should handle additional login attempts when the user has already logged in. The login page redirects to the home page if it finds that the user has already logged in.

However, if user has multiple browser tabs opened at the login page, login with one, then attempt to login again using the other browser tabs either with the same login or another login, how should I handle this two types of request?

To complicate things, I have a verification page which will also log the user in after user has been verified using the token. How should I handle this, if a user has already logged in?

For example, user A and user B both registered and both receives the token via email. They are both on the same PC, same browser, same session. User A verifies the token, then logs in successfully. User B, then verifies the token then logs in…? Wait user A has already logged in! What should I do with user A?

What would be the best practice here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:15:52+00:00Added an answer on June 8, 2026 at 7:15 pm

    if user has multiple browser tabs opened at the login page, login with
    one, then attempt to login again using the other browser tabs, how
    should I handle this request?

    Surely then the login session would be set and there would be no need to authenticate if it is a valid login again?

    There are generally 3 methods to handle additional logins:

    1. Ignore it, allow people to login in different locations at the same time

    2. Kick the first session out when the 2nd session logs in. This often isn’t the best solution, but it solves the problem of people closing their browser (i.e. not logging out properly) and then trying to login again in a new session and being told they can’t.

    3. Given the user an error saying they are logged in elsewhere. If doing this, make sure there is a time limit on an active login so that if someone does forget to logout somewhere, or their browser closes unexpectedly, then they are still able to log back in – they just have to wait a certain period of time.

    Personally, I go with the 2nd option unless there are abnormal circumstances.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a login script which generally works for me, but occasionally goes into
i have used the login script which is found here http://www.phpeasystep.com/phptu/6.html the script works
i have a user login system which works off of sessions such that when
i am writing web-services for login script. Which i have to keep on HTTPS
I have a login script that when successful, should check to see if the
I have the following shell script registered in my Login Items preferences but it
What is wrong with this login script? I have a modal-style iframe login box
I am using my admin panel login script where i have created a global.php
I'm currently building my own login script and have noticed that most append the
I have a vba script which is supposed to copy data from one sheet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.