9911782 Posted October 24, 2006 Share Posted October 24, 2006 Hi All Can somebody help me, I would like to get the script that will prevent multiple login in a system with 1 username and 1 password.thank you9911782 Link to comment Share on other sites More sharing options...
aspnetguy Posted October 24, 2006 Share Posted October 24, 2006 on login set a field in the database to true and on log off set it to false. If the variable is already true deny access. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 25, 2006 Share Posted October 25, 2006 It might be better to have a timestamp and an IP, and on each request check if it is a different IP accessing the page and the timestamp for the last one is less then 5 minutes or something like that. If people always log out you can have a field that keeps track of if they are logged in, but a lot of people just close the browser without logging out. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now