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 1089831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:16:58+00:00 2026-05-16T23:16:58+00:00

A feature that is currently missing from one of my web apps is that

  • 0

A feature that is currently missing from one of my web apps is that a single user can only be logged in on one machine at a time. That is, if the users logs in elsewhere, his previous session will be logged off.

This is due to my current users table having the columns:

user: id, username, hash, salt... cursession

When each user logs in, the session ID is put into the “cursession” field and on each page-load, is checked against the database. As a result, only one “session” can be active at a time.

  1. Is the current table structure and method secure and standard? This system was pretty much improvised, and I have no professional experience.
  2. What would be a way to allow multiple simultaneous logins? I’m simply thinking of adding a “sessions” table with more userid-cursession relations, but what’s the standard method for doing this?
  • 1 1 Answer
  • 3 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-05-16T23:16:58+00:00Added an answer on May 16, 2026 at 11:16 pm

    I propose that you put the current logged in userid in the user’s session (as a session variable), and drop the cursession field from the table altogether. You don’t need to reinvent session handling since PHP already has it built-in.

    That way the user can be logged in at multiple computers at once. Session variables are safe too, since they’re not manipulated by the browser. The only thing kept in the browser is a session id which identifies the current session, all other data is stored on the server-side. The only thing that will happen if the user changes his browser cookies is that he will be logged out (start an empty session), so he can’t force himself to log in as someone else.

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

Sidebar

Related Questions

My employer is currently trying out Fogbugz and one feature that would be nice
I have a feature that uses the camera so I can test it only
There's one specific feature that I wish was in the .NET framework, but isn't.
Fmylife.com has a nifty feature that when you copy the text from a post,
I'm currently designing an architecture for a web-based application that should also provide some
I'm currently learning (by doing) objective-c by implementing a feature I felt is missing
I'm currently implementing a HTML canvas based webapp that features panning. Is there a
This post identifies a feature that I would like to disable. Current numpy behavior:
Is there a feature that displayable tooltip for disabled commandButton in primefaces.
Xcode has a nice feature that let you submit your application to iTunes connect

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.