I have a session manager page: sessmgr.php. This page is supposed to validate the user log-in information, set the cookies and keep the session variables alive by updating the cookies expiration time and regenerating the session id by an XML HTTP request at regular intervals till the user logs out. I am able to update the session id but not extend the cookie expiration time.
How to update the cookie expiration time here ??
You should be able to update the expiration time with setcookie
like:
setcookie("Cookiename", $value, NewExpirationTime)
Check if the Cookiename is exactly the same so that the old Cookie will be overwritten.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With