Lambneck Posted May 21, 2008 Share Posted May 21, 2008 I am trying to make a payment system that generates temporary passwords. a specific page is password protected, the user pays to see it, then gets emailed a password that is good for a month. after a month the password will no longer work. Basically I would just like to know where to begin with this. If you've done this before or know of a good tutorial that could get me started any advice would be appreciated. Link to comment https://forums.phpfreaks.com/topic/106648-temporary-password/ Share on other sites More sharing options...
revraz Posted May 21, 2008 Share Posted May 21, 2008 Have a Date field in the user's row that specifies when it expires. Link to comment https://forums.phpfreaks.com/topic/106648-temporary-password/#findComment-546639 Share on other sites More sharing options...
947740 Posted May 21, 2008 Share Posted May 21, 2008 Just make a really long random number as the password. Make a database and store the random number, and the date the number was created. You could use a stored procedure to delete the random number from the database once the month is up. Link to comment https://forums.phpfreaks.com/topic/106648-temporary-password/#findComment-546643 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.