session - php an user should login in one system and should not be able to login from other system unless requested -
- I want to allow the user to login the same system.
- If they use another machine then they should not be able to login.
- If they want to log in, they can click on the login login option which will send a reset link to users' emails, clicked, reset the database, and update that from now on The forms of the form can enter which they requested a reset. Therefore, whenever a user changes his machine, he will not be able to login and request a reset option.
- I am using IP and session IDs and previous session IDs to check login from a machine.
- If his session ends in that machine, he will next be referenced in the last session ID in a cookie.
-
So every time as long as he arrives there, there will be two cookies that were previously logged into this machine and if so, the session ID has been updated and it is logged in.
So if he has entered the machine and if there is no previous / ongoing session-id / IP-address then that machine is considered completely new and can not login.
Hope I made it clear. If this is not very clear, please comment, then I will edit my question.
I want a better approach to implementing such functionality or some other efficient mechanism.
Even if the client is in a LAN and all the above conditions apply.
Do I have complexities to do this? If so, please give a good suggestion.
Thank you. After a comment from the edit user can enter anywhere,
If the machine changes, they can request a reset through their email when they click on the link in the email, then the machine will be recorded to the IP and the user must continue in that system. The administrator was requested that only two admin users are going to be.
Why do not you use cookies instead of session as your app's demand.
I think you are confused
The session client does not store cookies in the cookie. So you have to think about the cookie for this app. Once you apply a cookie instead of a session, then there is a logic for the project.
Comments
Post a Comment