Jump to content

No sign in for # days


elis

Recommended Posts

I'm actually looking for what this is called, I plan to do the research for it myself, but that's a bit difficult without a keyword to go on.

 

My goal is for my login script to automatically delete a user who hasn't logged in a set number of days, only I'm not sure what a code example, name, anything would be called for the "set number of days" part. I already have a function that notes the users last login, I  just need to...I'm not sure of the word I'm looking for, 'compare' it to the above.

 

I'm thinking (note this was written on a whim, so obviously there's no actual functunality)

 

if(!$login<30[d])

 

I'm sorry if this isn't explained well.

 

 

Link to comment
https://forums.phpfreaks.com/topic/36823-no-sign-in-for-days/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.