You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
2.9 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  9. <system>
  10. <section id="web">
  11. <group id="cookie" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
  12. <label>Default Cookie Settings</label>
  13. <field id="cookie_lifetime" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
  14. <label>Cookie Lifetime</label>
  15. <backend_model>Magento\Cookie\Model\Config\Backend\Lifetime</backend_model>
  16. <comment>Enter the Cookie Lifetime in seconds.</comment>
  17. <validate>validate-number</validate>
  18. </field>
  19. <field id="cookie_path" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  20. <label>Cookie Path</label>
  21. <backend_model>Magento\Cookie\Model\Config\Backend\Path</backend_model>
  22. <comment>Enter a valid cookie path. e.g. /</comment>
  23. </field>
  24. <field id="cookie_domain" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
  25. <label>Cookie Domain</label>
  26. <backend_model>Magento\Cookie\Model\Config\Backend\Domain</backend_model>
  27. <comment>Enter a valid domain name. e.g. "subdomain.yourdomain.com", ".yourdomain.com"</comment>
  28. </field>
  29. <field id="cookie_httponly" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
  30. <label>Use HTTP Only</label>
  31. <comment>
  32. <![CDATA[<strong class="colorRed">Warning</strong>: Do not set to "No". User security could be compromised.]]>
  33. </comment>
  34. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  35. </field>
  36. <field id="cookie_restriction" translate="label comment" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" canRestore="1">
  37. <label>Cookie Restriction Mode</label>
  38. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  39. <backend_model>Magento\Cookie\Model\Config\Backend\Cookie</backend_model>
  40. <comment>When Cookie Restriction Mode is enabled, visitors to your store are notified that cookies are required for full-featured operations.</comment>
  41. </field>
  42. </group>
  43. </section>
  44. </system>
  45. </config>