Solved: Failed to Set ini Option “session.cookie_samesite” to Value “Lax” in Magento 2.3.6-p1

However, it is not recommended to apply changes in the default file of Magento. So it is better to use PHP version 7.3 or above.
Thank you for subscribing.

So check if your version of PHP is 7.3 or above. If not, set PHP 7.3 or above version.

Something went wrong.
If yes, relatable!
If you have any doubts regarding this error and its solution, just mention them in the Comments section below.

Solution for Failed to Set ini Option “session.cookie_samesite” to Value “Lax” in Magento 2.3.6-p1

And faced an error after installing the Magento version 2.3.6-p1 that looks something like this:
Feel free to share the solution with Magento Community via social media.
Use the below code in your SessionManager.php file located at vendormagentoframeworkSession

Did you try to install Magento 2.3.6-p1?

That’s all!
PHP 7.3 or above version is a must to solve this error!
However, I have another solution for this error if you don’t want to change your PHP version.
I would be happy to help.
Because I’ve also faced the same error. To save you from all the process I went through to find the solution to Failed to Set ini Option “session.cookie_samesite” to Value “Lax” in Magento 2.3.6-p1, I have posted it here.
Thank You.

Get Weekly Updates

report.ERROR: Failed to set ini option “session.cookie_samesite” to value “Lax”.

Never miss Magento tips, tricks, tutorials, and news.
This error occurs due to the lower PHP version you may be using.




(based on 14 Reviews)