Hey all,
I have a question about manipulating dates that's driving me mad. I have a date in a database (MySQL) that I'm using in an authenticaion script. Everytime they try to do something in our admin area, it checks a session database to see if their logged in. To make sure that the session data is not old, everytime it's accessed it's given a DateTime stamp. When I check this, I want to add 10 minutes to their last logged time and make sure the current time is less then that (so their session expires in 10 minutes of inactivity, then they must re-login). However, I can not find any kind of functions that will let me increment the time by 10 minutes! It seems as though PHP was built to make date manipulation difficult. :-) Any code would be very much appreciated!!
Thanks a bunch, you're saving me a headache. 🙂
-Tyler