How does a cookie expiration work?
How does a cookie expiration work?
![aluferrari](https://secure.gravatar.com/avatar/eff5b352aeed3d0d32c409d3b7592eff/?default=https%3A%2F%2Fvanillicon.com%2Feff5b352aeed3d0d32c409d3b7592eff_200.png&rating=g&size=120)
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