Reply
Looking for password protection script with 1 username on at a time
Old 04-30-2007, 09:45 PM Looking for password protection script with 1 username on at a time
Junior Talker

Posts: 4
Name: Chad Sobota
Location: Dayton, OH
I am planning on building a website that I will sell usernames and passwords to a password protected part of the site, but I want it so only 1 person can be logged into a same username at a time (which should eliminate password sharing violations to an extent).

If you know of any free php scripts that would do this post them below.

I would like the script to be a basic username and password php login script tied to a mySQL datebase that holds the usernames and passwords.
__________________
www.djpsych.com
djpsych is offline
Reply With Quote
View Public Profile Visit djpsych's homepage!
 
When You Register, These Ads Go Away!
     
Old 04-30-2007, 09:59 PM Re: Looking for password protection script with 1 username on at a time
mgraphic's Avatar
Truth Seeker

Posts: 2,311
Name: Keith Marshall
Location: West Hartford, CT
Check out scripts on sites like www.hotscripts.com or www.phpclasses.org

It sounds like to me that you would have to custom build this feature yourself, however, it would be pretty simple to create if you have any php experience.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-01-2007, 06:15 PM Re: Looking for password protection script with 1 username on at a time
Junior Talker

Posts: 4
Name: Chad Sobota
Location: Dayton, OH
Yeah i already went though hotscripts.com and found the script X-Protection (http://www.hotscripts.com/Detailed/44885.html), it has all i want except the "1 person can be logged into a same username at a time" feature. I can edit php scripts and combine some, but i have no clue how to program that feature straight up.

Know of any scripts that have any type of feature like this, or any sites that have code snippets close to this feature?
__________________
www.djpsych.com
djpsych is offline
Reply With Quote
View Public Profile Visit djpsych's homepage!
 
Old 05-01-2007, 09:58 PM Re: Looking for password protection script with 1 username on at a time
phpknowhow's Avatar
Skilled Talker

Posts: 83
Name: Colin
Location: USA
That would only take like 5 minutes in PHP/MYSQL if you know what your doing. All you need to do is set up a database:

user_id (autoincrement)
user_name
user_password
user_logged (0=no | 1=yes)

Then have a login script, and check to see if the user_logged value is 0 or 1, and allow them access accordingly.
__________________
PHP Know How | Freelance PHP solutions for small to midsized projects | Contact Me
phpknowhow is offline
Reply With Quote
View Public Profile Visit phpknowhow's homepage!
 
Reply     « Reply to Looking for password protection script with 1 username on at a time
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12930 seconds with 13 queries