How does a cookie expiration work?
How does a cookie expiration work?
aluferrari
Posts: 22Questions: 1Answers: 0
Hi,
Please help me understand the cookie expiration method.
We have set "CookieDuration: 600" i.e., 10mins.
- Does the cookie expires after 10mins from when it is loaded first time?
- Does it extend the expiry time if we load another data tables page or the same page within 10mins?
- What happens if user is still using the page and the cookie expiration time ends. Will the user loose all settings?
Thanks a lot.
Please help me understand the cookie expiration method.
We have set "CookieDuration: 600" i.e., 10mins.
- Does the cookie expires after 10mins from when it is loaded first time?
- Does it extend the expiry time if we load another data tables page or the same page within 10mins?
- What happens if user is still using the page and the cookie expiration time ends. Will the user loose all settings?
Thanks a lot.
This discussion has been closed.
Replies
> - Does it extend the expiry time if we load another data tables page or the same page within 10mins?
Each DataTable uses an independent cookie - so one has no effect on another.
> - What happens if user is still using the page and the cookie expiration time ends. Will the user loose all settings?
No - the current state is maintained. If they reloaded without a redraw, then yes they would then lose the state.
Allan
But I see only 1 file per URL. Does it maintain all cookies in 1 file?
Thanks.
Allan