blesseld Posted December 29, 2009 Share Posted December 29, 2009 Hey All, I want to create a trial period for my site, I buil;t my own members script and just curious what the best way to implement this limitation. I was thinking of adding a time stamp or something then do a check with the date. Would that be a good way or is there an easier way with time in general? I have never done this so any suggestion would be greatly appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/186624-creating-trial-period-accounts-timstamp-for-expire-time/ Share on other sites More sharing options...
iPixel Posted December 29, 2009 Share Posted December 29, 2009 Your time stamp idea is fine, but you'd have to modify your login script a little bit. So let's say their timeout timestamp is set to deactivate the account on Jan 1st 2010. On each logon have the script check that timestamp date with todays date, and if it's past it, deactivate the account, otherwise proceed with login. Link to comment https://forums.phpfreaks.com/topic/186624-creating-trial-period-accounts-timstamp-for-expire-time/#findComment-985663 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.