I would like to know how to get the date and time difference in minutes based on
which i need to do expiry of 1 hour for login , after 60 minutes has expired users can resume login .
$currentdate = 1336468008
$storeddate = 1336464866
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Gives you difference in seconds
Divide by 60 for minutes and by 60 again for hours.
You could just divide the result by 3600 and if the answer > 1 set expired.