enable_dom_storage
enable_dom_storage($enable=true,$refresh=true); - allow or prohibit storing cookies in DOM Storage. DOM Storage is located in the registry and when enabled, cookies will be stored on all running copies of human in one place.
You can use this function to check whether DOM storage is allowed or forbidden in the browser is_enable_dom_storage.
Dom Storage (or as it is also called Web Storage) is a mechanism that helps you work with data on the client side and replaces the cookie mechanism used for this purpose earlier. By removing the restrictions set by the cookie mechanism, DOM Storage offers an equally simple and efficient way to store data.
for more information about how it works, see this >.
the input Function accepts parameters:
$enable – allow (true) or deny (false)$refresh – should the page be updated (true) or not (false) after this command
After testing, the function returns the result of its work to the script :
true – completed successfully
false – failed