Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 14, 2008, 02:13:06 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: 1 IP 1 ID question  (Read 166 times)
sam4et
Trekkie
**
Offline Offline

Posts: 13


« on: August 14, 2002, 11:42:00 PM »

some of paysite has this kind of feature to prevent hacking and id sharing with other person.

if one id has logged in, then
someone tries to log in with same id, one person
is dropped. I'm wondering where could i get this
kind of script. if anyone knows, please let me know.

thanks a lot
Logged
Santos
Jabba the Hutt
*****
Offline Offline

Posts: 562


WWW
« Reply #1 on: August 18, 2002, 10:18:00 PM »

Sorry  for the long reply time.

If you are proficient in perl you can do exactly what you asked by modifying the code in one of these scripts.

 GO HERE

Let us know how it goes
Logged

Smile, it makes people wonder what you're up to...
sam4et
Trekkie
**
Offline Offline

Posts: 13


« Reply #2 on: August 20, 2002, 11:13:00 PM »

Thanks,
I'll visit the site and keep you posted.
Thanks again.
Logged
TWebMan
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3112



WWW
« Reply #3 on: August 21, 2002, 02:23:00 PM »

Otherwise, you can use sessions to not allow dupes, though that can get a bit tricky.  Another way is to use a database table, have a record inserted on login, into a field that doesn't allow dupes.  But then you would have to either make sure users log out, or have a javascript call up some code that deletes the record when the window is closed...this could be contained in a session also.
Logged

"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM