What is samesite cookie in php
we have a method to accomplish this,which can be done by one of the most common function header() in php Add cookie Samesite strict by using header() function add below header() functions in the top of your home page header("Set-Cookie: key=value; path=/; domain=www.tutorialshore.com; HttpOnly; Secure; SameSite=Strict");
See how we can check a cookie is samesite, we can do with the help of chrome browser as we know almost every browser have the inspect element option, within inspect element tab we have the application section to check cookie see below image.
Click F12 function button
go for application >> cookies