OK I'm using cookies rather than session variables to track my users. So instead of setting <cfset Session.MemberID = #Record.MemberID#>, I'm setting a cookie with the #Record.MemberID# inside of it.
I have a Logout button, and that works fine.. I click that and it gets rid of the cookie.. but my problem is if I'm idle for 20 minutes and come back and refresh the page, I'm still logged in because the cookie is still there. Usually with session variables they have a timeout of 20 minutes... how can I replicate this same behaviour with my cookie? Ie, if someone is idle for 20 minutes I want them to be logged out.
I have a Logout button, and that works fine.. I click that and it gets rid of the cookie.. but my problem is if I'm idle for 20 minutes and come back and refresh the page, I'm still logged in because the cookie is still there. Usually with session variables they have a timeout of 20 minutes... how can I replicate this same behaviour with my cookie? Ie, if someone is idle for 20 minutes I want them to be logged out.