I have a PHP application that runs on a wild car domain. (https://foo.bar.com).
If I load the PHP application in an iframe on bar.com or any instance of *.bar.com the application runs perfectly.
If I try and load the application in an iframe on my localhost (http://localhost/bar) The initial login page loads but it doesn't look like sessions are being set for me.
I've attempted the following so far:
header('Access-Control-Allow-Origin: *');
ini_set('session.cookie_samesite', 'None');
ini_set('session.cookie_secure', 'true');
session_set_cookie_params(["lifetime" =>SESSION_EXPIRE_TIME, "samesite" =>"None", "secure" => true]);
session_start();
but this doesn't seem to be working with the sessions. In the Chromes Application tab, I do see the PHPSESSID (foo.bar.com) that has secure checked but SameSite is blank. any extra guidance would be great.