Allowed Sites (Session Only): registry value Cookies_AllowSession (AllowSession)UserHKCU\Software\Policies\Mozilla\Firefox\Cookies\AllowSession

Policy ID
Cookies_AllowSession
Scope
Computer Configuration, User Configuration
Supported on
Firefox 79 or later, Firefox 78.1 ESR or later
Source
Mozilla Firefox Policy Templates (version 8.3)
Category
Mozilla › Firefox › Cookies

Registry

(list values)

REG_SZUserComputer
Enabled value
Depends on the option value
Element
-
Value type
REG_SZ
Value name prefix
-
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox\Cookies\AllowSession]

; Add one value per list entry, increasing the number
"1"="<enter value>"
"2"="<enter value>"
CMD
:: Add one value per list entry, increasing the number

reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies\AllowSession" /v "1" /t REG_SZ /d "<enter value>" /f
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies\AllowSession" /v "2" /t REG_SZ /d "<enter value>" /f
PowerShell
# Add one value per list entry, increasing the number

New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies\AllowSession' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies\AllowSession' -Name '1' -PropertyType String -Value '<enter value>' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies\AllowSession' -Name '2' -PropertyType String -Value '<enter value>' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox\Cookies\AllowSession]

; Add one value per list entry, increasing the number
"1"="<enter value>"
"2"="<enter value>"
CMD
:: Add one value per list entry, increasing the number

reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies\AllowSession" /v "1" /t REG_SZ /d "<enter value>" /f
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies\AllowSession" /v "2" /t REG_SZ /d "<enter value>" /f
PowerShell
# Add one value per list entry, increasing the number

New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies\AllowSession' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies\AllowSession' -Name '1' -PropertyType String -Value '<enter value>' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies\AllowSession' -Name '2' -PropertyType String -Value '<enter value>' -Force | Out-Null