Check if session expired
Posted: Fri Jul 23, 2010 11:47 am
I am creating a cookie
If the cookie expires, it will just go back to the log in page. I need to show some sort of indication that the cookie expired instead of just showing the log in page. Ex: "Your session has expired. Please log back in." Is there a way of detecting that the cookie expired?
Code: Select all
setcookie("USERID","$userid",time()+3600,"/",".mydomain.org",0);