how to use php sessions in embeded files?
I have a site https://one.com/go.php that (for example) contains :
session_start(); $_SESSION['id_ad'] = 123456; header('Location: https://two.com/index.php');
and finally 2.php is:
can i access
$_SESSION['id_ad'] in 2.php ?
I tested only on firefox works.
thank you to @Dimash to mention my mistake, but the main question still exists
Here is working code:
Please note, that code was tested.