I was going to set cookie samesite property to none.
samesite
none
PHP version is 5.3 and OS is Ubuntu 12.04.
5.3
12.04
Here is cod