I already have have a members login script.... but i have to manually delete users.....what i reaaly need is to know how to make member expire after so many days with a php script. (free or very cheap) :cheesy:
mvblhp
0
Newbie Poster
Recommended Answers
Jump to PostHow much PHP do you know? You could just calculate the time length between the last login and registration time (if they've never logged in yet), or between the last two logins. If it equals x amount of time, then delete'em. How complicated is your current script? I could probably …
Jump to PostYou could of course use sessions to maintain a users logged in period, but the deleting will need to be handled by a cron executed periodic script.
To do this you would simply need to add a tmie stamp to each users database entry stating when they last logged in.
…
All 7 Replies
samaru
145
a.k.a inscissor
Team Colleague
mikeSQL
5
Junior Poster
mvblhp
0
Newbie Poster
mikeSQL
5
Junior Poster
tautologies
0
Newbie Poster
mikeSQL
5
Junior Poster
ReDuX
1
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.