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

The Archive Base Latest Questions

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

I want to allow users to use only one system to login. if they

  • 0
  1. I want to allow users to use only one system to login.
  2. if they use another machine then they should not be able to login.
  3. If they want to login then they can click request login option which will sent a reset link to the users email which when clicked will reset and update the database so that from now on he can login form that machine form which he made the reset request.
  4. so, when ever the user changes his machine he should not be able to login and can request a reset option.
  5. i am using ip and session id and previous session id to check login from one machine.
  6. if his session expires in that machine he will be logged in next time by storing the previous session id reference in a cookie.
  7. so each time he access there will be two cookies to mean that whether he previously logged in this machine and if so then the session id is updated and he is logged in.

    so if he is login in from a machine and if there is no previous/current session-id/ip-address then he is considered totally new to that machine and he cannot login.

    Hope i have made it clear. if it is not much clear then please comment then i will edit my question.

    I want a better approach or some other efficient mechanism to implement such functionality.

    Even if the client is in a lan all the above conditions apply.

    do my way of doing this has complications? if so then please suggest a good one.

    Thank you.


Editing after a comment from https://stackoverflow.com/users/164394/purplepilot


the user can login anywhere but if the machine changes they can request an reset through their email. when they click the link in the email then that machines ip will be recorded and the user will have to continue in that system. This was requested by the admin cause there is going to be only two admin users.

  • 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-05-16T23:58:53+00:00Added an answer on May 16, 2026 at 11:58 pm

    Why dont you use cookie instead of session as your app demand that.

    i think you are confused

    Session never stored in client , cookie does. so you have to think about cookie for this app. Logic for the project seems okey once you implement cookie instead of session.

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

Sidebar

Related Questions

customers does not want to allow user to use back or forward button. Just
We want to allow DB access (Oracle) to our users only through our own
I want to allow the user to use lowercase or uppercase letters giving the
I want to allow users of my application to add sub-users and set privileges
I want to allow users to put in am img url instead of uploading
I want to allow users to either have there username field empty at any
I want to allow users to make their own Python mods for my game,
I want to allow users to select a local directory on a webpage (and
I have some labels that I want to allow users to edit. Is it
I am making an application in Java and I want to allow users to

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.