I want one session variable to be cleaned every 24 hours .I don’t want to kill or unset all the sessions just one session to be unset every 24 hours a day.
Share
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.
When the session is 1st created on the client just give it a date:
Then whenever the page changes check that date:
Or you could do it with timestamp and check based on the number of hours: