Skip to content

Commit b7db784

Browse files
comments & validation added in cookie configuration
1 parent 86515dd commit b7db784

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Cookie/etc/adminhtml/system.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@
1313
<field id="cookie_lifetime" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
1414
<label>Cookie Lifetime</label>
1515
<backend_model>Magento\Cookie\Model\Config\Backend\Lifetime</backend_model>
16+
<comment>Enter the Cookie Lifetime in seconds.</comment>
17+
<validate>validate-number</validate>
1618
</field>
1719
<field id="cookie_path" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
1820
<label>Cookie Path</label>
1921
<backend_model>Magento\Cookie\Model\Config\Backend\Path</backend_model>
22+
<comment>Enter a valid cookie path. e.g. /</comment>
2023
</field>
2124
<field id="cookie_domain" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
2225
<label>Cookie Domain</label>
2326
<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>
2428
</field>
2529
<field id="cookie_httponly" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
2630
<label>Use HTTP Only</label>
@@ -33,6 +37,7 @@
3337
<label>Cookie Restriction Mode</label>
3438
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
3539
<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>
3641
</field>
3742
</group>
3843
</section>

0 commit comments

Comments
 (0)