Getting a cookie's expiry value on a server
Published on:Browsers handle cookie expiry so they don't pass the cookie's expiry value to the server. You have to make some adjustments if you want to get the cookie's expiry value on the server.
There are two methods:
- You can create a cookie with a JSON value
- You can use another cookie to signify the expiry