|
| ramxx - Mon Apr 11, 2011 1:13 pm |
|
|
Hello, i need help with a code, in return, i can give you a "gift" on paypal. I am not experienced, and i would love all the help possible
I need a login script that will give access timed sessions of 70 seconds.
People will be using "Access Tokens" which they can only be used once.
After the access token code is entered into login page, it will be deleted, and therefore can not be used again.
The access token will give them access to the page for 70 seconds after the 70 seconds, it will log them out of the page by force.
If the user tries to refresh, it will log them out to avoid cheating.
Also if possible, i would like to have an option to expire the codes 30 days from issuing. It can be done in the .txt file, like this: KEY74-E6JIC-8F573-99IZR-W5R0L:30 where 30 = days till expiration/delete. Or it can be a cron job where it checks and when a certain date comes, it deletes the code automatically, so 15/04/11 D/M/Y.
The access tokens can be in a .txt or even in a mysql database, i want easy access to modify them, but i want it also be hard to "hack" So the .txt would only be possible to be accessed by the script.
So:
Lets say i give you access to my page you will receive:
Tokens:
KEY74-E6JIC-8F573-99IZR-W5R0L
KEYO3-42AJR-47HIL-5MD1H-A1818
KEYG2-9LF61-KIYBR-H3PZQ-87O47
KEY65-CYJYK-I7364-9C87U-01O4R
KEY57-CL92P-54YTV-E67L2-L77G8
KEY4R-4W6SV-B7B94-7S441-UADUR
KEYOG-O087J-00AS7-WP6HV-TN5Q1
Or something like that...
As soon as the token is used, it should be deleted so its not used again.
Each 1 token will give you access for 70 seconds, then you are forced out of the page.
Thanks in advance!
Any help is highly appreciated. |
|